How to zoomed a portion of image and insert in the same plot in matplotlib

前端 未结 4 447
太阳男子
太阳男子 2020-12-02 05:19

I would like to zoom a portion of data/image and plot it inside the same figure. It looks something like this figure.

4条回答
  •  春和景丽
    2020-12-02 06:25

    The nicest way I know of to do this is to use mpl_toolkits.axes_grid1.inset_locator (part of matplotlib).

    There is a great example with source code here: enter image description herehttps://github.com/NelleV/jhepc/tree/master/2013/entry10

提交回复
热议问题