Skip to content

Commit 84a9e3a

Browse files
committed
DOC: add inset axes example
1 parent 8bb6806 commit 84a9e3a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/subplots_axes_and_figures/zoom_inset_axes.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ def get_demo_image():
3131
origin="lower")
3232

3333
# inset axes....
34+
<<<<<<< HEAD
3435
axins = ax.inset_axes_rect([0.5, 0.5, 0.47, 0.47])
36+
=======
37+
axins = ax.inset_axes([0.5, 0.5, 0.47, 0.47])
38+
>>>>>>> 97a72b10a... DOC: add inset axes example
3539
axins.imshow(Z2, extent=extent, interpolation="nearest",
3640
origin="lower")
3741
# sub region of the original image
@@ -41,7 +45,11 @@ def get_demo_image():
4145
axins.set_xticklabels('')
4246
axins.set_yticklabels('')
4347

48+
<<<<<<< HEAD
4449
ax.zoom_inset_indicator(axins)
50+
=======
51+
ax.zoom_inset_rectangle(axins)
52+
>>>>>>> 97a72b10a... DOC: add inset axes example
4553

4654
plt.show()
4755

@@ -55,6 +63,11 @@ def get_demo_image():
5563
# The use of the following functions and methods is shown in this example:
5664

5765
import matplotlib
66+
<<<<<<< HEAD
5867
matplotlib.axes.Axes.inset_axes_rect
5968
matplotlib.axes.Axes.zoom_inset_indicator
69+
=======
70+
matplotlib.axes.Axes.inset_axes
71+
matplotlib.axes.Axes.zoom_inset_rectangle
72+
>>>>>>> 97a72b10a... DOC: add inset axes example
6073
matplotlib.axes.Axes.imshow

0 commit comments

Comments
 (0)