Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to plot a zoomed part in a matplotlib figure in sage?

Hi, I'm trying to zoom one part of my figure in Matplotlib. In the Matplotlib-Galery, I found this nice example using mpl_toolkits.axes_grid.inset_locator

http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/examples/inset_locator_demo.py

The result is http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/examples/inset_locator_demo.hires.png

which is pretty much what I need.

Does anybody know how to do this in sage? I didn't manage to use this function in sage. (In fact, I even didn't find it)

Thanks!