Code Monkey home page Code Monkey logo

data_from_figures's Introduction

data from figures

This repo contains some Python scripts that I have been using to reverse-engineer figures (mainly from papers, or datasheets) to extract quantitatively their data. So far they only work for a selected number of figure types: line plots, scatter, bargraphs and heatmaps. Fortunately, these cover the vast majority of figures found around. The data is exported in a .csv file.

Use

1 Their usage is fairly simple. From the console execute any file as python export_scatter.py -i input_filepath -o output_filepath. And perhaps some of the optional parameters:

`-sz VALUE` to resize the image previews. Value can be any decimal number. Default = 1
`-th VALUE` to change the color similarity threshold that recognizes poits/lines. Value can be any number in [0,1]. default = 0.95
`-p  VALUE` to specify the output precision in numbers of decimals. Value can be any integer >1. Default=2  

2 The image will pop up and you need to specify the axis limits by click-and-dragging the bounding box. Press ENTER to continue.

3 Follow the questions asked in the terminal.

4 Enjoy your results in the csv file!

Example results of line plots

Example results of scatter plots

Example results of bar graphs

Example results of heatmaps

data_from_figures's People

Contributors

pyubero avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.