@@ -35,7 +35,12 @@ data (e.g., different y-scale) in a same Axes. `AnchoredArtists`_
35
35
includes custom artists which are placed at some anchored position,
36
36
like the legend.
37
37
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
39
44
40
45
41
46
axes_grid1
@@ -52,8 +57,12 @@ ratio. For example, displaying images of a same size with some fixed
52
57
padding between them cannot be easily done in matplotlib. ImageGrid is
53
58
used in such case.
54
59
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
57
66
58
67
* The position of each axes is determined at the drawing time (see
59
68
`AxesDivider `_), so that the size of the entire grid fits in the
@@ -154,7 +163,12 @@ attribute.
154
163
155
164
The examples below show what you can do with ImageGrid.
156
165
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
158
172
159
173
160
174
AxesDivider
@@ -185,8 +199,12 @@ creates a new axes on the given side of ("top", "right", "bottom" and
185
199
colorbar whose height (or width) in sync with the master axes
186
200
-------------------------------------------------------------
187
201
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
190
208
191
209
192
210
@@ -215,7 +233,12 @@ The "scatter_hist.py" example in mpl can be rewritten using
215
233
216
234
See the full source code below.
217
235
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
219
242
220
243
221
244
The 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
250
273
Example 1. twinx
251
274
~~~~~~~~~~~~~~~~
252
275
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
255
282
256
283
Example 2. twin
257
284
~~~~~~~~~~~~~~~
@@ -267,7 +294,12 @@ tick-formatter for bottom(or left)-axis. ::
267
294
r"$\pi$", r"$\frac{3}{2}\pi$", r"$2\pi$"])
268
295
269
296
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
271
303
272
304
273
305
@@ -276,7 +308,12 @@ x-limit in the host axes, the x-limit of the parasite axes will change
276
308
accordingly.
277
309
278
310
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
280
317
281
318
282
319
AnchoredArtists
@@ -289,8 +326,12 @@ limited support for an arbitrary transform. For example, the ellipse
289
326
in the example below will have width and height in the data
290
327
coordinate.
291
328
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
294
335
295
336
296
337
InsetLocator
@@ -323,16 +364,25 @@ some factor. For example, ::
323
364
creates an inset axes whose data scale is half of the parent axes.
324
365
Here is complete examples.
325
366
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
327
373
328
374
For example, :func: `zoomed_inset_axes ` can be used when you want the
329
375
inset represents the zoom-up of the small portion in the parent axes.
330
376
And :mod: `~mpl_toolkits/axes_grid/inset_locator ` provides a helper
331
377
function :func: `mark_inset ` to mark the location of the area
332
378
represented by the inset axes.
333
379
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
336
386
337
387
338
388
RGB Axes
@@ -353,4 +403,22 @@ yaxis of each axes are shared. ::
353
403
origin="lower", interpolation="nearest")
354
404
355
405
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