@@ -35,7 +35,12 @@ data (e.g., different y-scale) in a same Axes. `AnchoredArtists`_
3535includes custom artists which are placed at some anchored position,
3636like the legend.
3737
38- .. plot :: mpl_toolkits/axes_grid1/examples/demo_axes_grid.py
38+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_demo_axes_grid_001.png
39+ :target: ../../gallery/axes_grid1/demo_axes_grid.html
40+ :align: center
41+ :scale: 50
42+
43+ Demo Axes Grid
3944
4045
4146axes_grid1
@@ -52,8 +57,12 @@ ratio. For example, displaying images of a same size with some fixed
5257padding between them cannot be easily done in matplotlib. ImageGrid is
5358used in such case.
5459
55- .. plot :: mpl_toolkits/axes_grid1/examples/simple_axesgrid.py
56- :include-source:
60+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_simple_axesgrid_001.png
61+ :target: ../../gallery/axes_grid1/simple_axesgrid.html
62+ :align: center
63+ :scale: 50
64+
65+ Simple Axesgrid
5766
5867* The position of each axes is determined at the drawing time (see
5968 `AxesDivider `_), so that the size of the entire grid fits in the
@@ -154,7 +163,12 @@ attribute.
154163
155164The examples below show what you can do with ImageGrid.
156165
157- .. plot :: mpl_toolkits/axes_grid1/examples/demo_axes_grid.py
166+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_demo_axes_grid_001.png
167+ :target: ../../gallery/axes_grid1/demo_axes_grid.html
168+ :align: center
169+ :scale: 50
170+
171+ Demo Axes Grid
158172
159173
160174AxesDivider
@@ -185,8 +199,12 @@ creates a new axes on the given side of ("top", "right", "bottom" and
185199colorbar whose height (or width) in sync with the master axes
186200-------------------------------------------------------------
187201
188- .. plot :: mpl_toolkits/axes_grid1/figures/simple_colorbar.py
189- :include-source:
202+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_simple_colorbar_001.png
203+ :target: ../../gallery/axes_grid1/simple_colorbar.html
204+ :align: center
205+ :scale: 50
206+
207+ Simple Colorbar
190208
191209
192210
@@ -215,7 +233,12 @@ The "scatter_hist.py" example in mpl can be rewritten using
215233
216234See the full source code below.
217235
218- .. plot :: mpl_toolkits/axes_grid1/examples/scatter_hist.py
236+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_scatter_hist_001.png
237+ :target: ../../gallery/axes_grid1/scatter_hist.html
238+ :align: center
239+ :scale: 50
240+
241+ Scatter Hist
219242
220243
221244The scatter_hist using the AxesDivider has some advantage over the
@@ -250,8 +273,12 @@ parasite axes. To create a host axes, you may use *host_suplot* or
250273Example 1. twinx
251274~~~~~~~~~~~~~~~~
252275
253- .. plot :: mpl_toolkits/axes_grid1/figures/parasite_simple.py
254- :include-source:
276+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_parasite_simple_001.png
277+ :target: ../../gallery/axes_grid1/parasite_simple.html
278+ :align: center
279+ :scale: 50
280+
281+ Parasite Simple
255282
256283Example 2. twin
257284~~~~~~~~~~~~~~~
@@ -267,7 +294,12 @@ tick-formatter for bottom(or left)-axis. ::
267294 r"$\pi$", r"$\frac{3}{2}\pi$", r"$2\pi$"])
268295
269296
270- .. plot :: mpl_toolkits/axes_grid1/examples/simple_axisline4.py
297+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_simple_axisline4_001.png
298+ :target: ../../gallery/axes_grid1/simple_axisline4.html
299+ :align: center
300+ :scale: 50
301+
302+ Simple Axisline4
271303
272304
273305
@@ -276,7 +308,12 @@ x-limit in the host axes, the x-limit of the parasite axes will change
276308accordingly.
277309
278310
279- .. plot :: mpl_toolkits/axes_grid1/examples/parasite_simple2.py
311+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_parasite_simple2_001.png
312+ :target: ../../gallery/axes_grid1/parasite_simple2.html
313+ :align: center
314+ :scale: 50
315+
316+ Parasite Simple2
280317
281318
282319AnchoredArtists
@@ -289,8 +326,12 @@ limited support for an arbitrary transform. For example, the ellipse
289326in the example below will have width and height in the data
290327coordinate.
291328
292- .. plot :: mpl_toolkits/axes_grid1/examples/simple_anchored_artists.py
293- :include-source:
329+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_simple_anchored_artists_001.png
330+ :target: ../../gallery/axes_grid1/simple_anchored_artists.html
331+ :align: center
332+ :scale: 50
333+
334+ Simple Anchored Artists
294335
295336
296337InsetLocator
@@ -323,16 +364,25 @@ some factor. For example, ::
323364creates an inset axes whose data scale is half of the parent axes.
324365Here is complete examples.
325366
326- .. plot :: mpl_toolkits/axes_grid1/examples/inset_locator_demo.py
367+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_inset_locator_demo_001.png
368+ :target: ../../gallery/axes_grid1/inset_locator_demo.html
369+ :align: center
370+ :scale: 50
371+
372+ Inset Locator Demo
327373
328374For example, :func: `zoomed_inset_axes ` can be used when you want the
329375inset represents the zoom-up of the small portion in the parent axes.
330376And :mod: `~mpl_toolkits/axes_grid/inset_locator ` provides a helper
331377function :func: `mark_inset ` to mark the location of the area
332378represented by the inset axes.
333379
334- .. plot :: mpl_toolkits/axes_grid1/examples/inset_locator_demo2.py
335- :include-source:
380+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_inset_locator_demo2_001.png
381+ :target: ../../gallery/axes_grid1/inset_locator_demo2.html
382+ :align: center
383+ :scale: 50
384+
385+ Inset Locator Demo2
336386
337387
338388RGB Axes
@@ -353,4 +403,22 @@ yaxis of each axes are shared. ::
353403 origin="lower", interpolation="nearest")
354404
355405
356- .. plot :: mpl_toolkits/axes_grid1/figures/simple_rgb.py
406+ .. figure :: ../../gallery/axes_grid1/images/sphx_glr_simple_rgb_001.png
407+ :target: ../../gallery/axes_grid1/simple_rgb.html
408+ :align: center
409+ :scale: 50
410+
411+ Simple Rgb
412+
413+
414+
415+
416+
417+
418+
419+
420+
421+
422+
423+
424+
0 commit comments