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
706 stars 38 forks source link

A tool to create insets #56

Open JoostScheffer opened 1 year ago

JoostScheffer commented 1 year ago

I think it would be nice to add a tool to create insets.

I imagine there being a tool with which you can draw a box around a part of the graph, followed by pylustrator creating an inset of that part.

An illustration of what an inset looks like: image

I think this shouldn't be to hard to implement since matplotlib aleady has the zoomed_inset_axes function. A demo on how to use this function can be found here: https://matplotlib.org/stable/gallery/axes_grid1/inset_locator_demo2.html

I might try to create something like this for pylustrator sometime in the future.