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
707 stars 37 forks source link

svg file editting #34

Closed xihajun closed 2 years ago

xihajun commented 2 years ago

Hi, thanks for this nice tools.

I wonder if that works for import svg file generated by python as well. maybe things like plt.imshow?

rgerum commented 2 years ago

Hi, I am sorry but I don't quite understand what your request is about. Could you elaborate a bit more? You want to import svg which was generated on the fly by python without loading it from file? If yes, how do you generate it? But I guess the representation of the svg then depends on the package that creates it. So maybe the easiest way would be to write it to an io stream and pass that into the function

xihajun commented 2 years ago

Thanks a lot! you are right, I think the pylustrator.load works magically.