rgerum / pylustrator

Visualisations of data are at the core of every publication of scientific research results. They have to be as clear as possible to facilitate the communication of research. As data can have different formats and shapes, the visualisations often have to be adapted to reflect the data as well as possible. We developed Pylustrator, an interface to directly edit python generated matplotlib graphs to finalize them for publication. Therefore, subplots can be resized and dragged around by the mouse, text and annotations can be added. The changes can be saved to the initial plot file as python code.
GNU General Public License v3.0
708 stars 37 forks source link

Use the object-oriented API #15

Open wa-dev opened 4 years ago

wa-dev commented 4 years ago

Can pylustrator operate directly on a matplotlib.figure.Figure? It would be useful if I could modify a Figure object.

rgerum commented 4 years ago

Sorry, I don't quite understand what you want to do. Could you elaborate a bit more on your idea? Do you want to activate pylustrator just for a single figure? Or do you not want pylustrator to use plt.figure(0) in the generated code?