Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 682e890

Browse files
committed
fixing broken img links etc
1 parent 503747e commit 682e890

File tree

19 files changed

+474
-91
lines changed

19 files changed

+474
-91
lines changed

doc/_static/depsy_badge.svg

Lines changed: 1 addition & 0 deletions
Loading

doc/_static/mpl.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,7 @@ div.responsive_subfig img {
786786
width: 50%; /* we want 2 subfigs in a row */
787787
}
788788

789+
/* Sphinx gallery display */
789790
}
790791

791792
div.align-center {
@@ -796,3 +797,7 @@ div.align-center {
796797
p.caption {
797798
font-weight: bold;
798799
}
800+
801+
div#gallery.section {
802+
overflow: hidden;
803+
}

doc/api/index.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@
6060

6161
.. currentmodule:: matplotlib
6262

63-
The pyplot API
64-
--------------
65-
6663
.. autosummary::
6764
:toctree: _as_gen
6865
:template: autofunctions.rst

doc/mpl_toolkits/axes_grid1/overview.rst

Lines changed: 85 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ data (e.g., different y-scale) in a same Axes. `AnchoredArtists`_
3535
includes custom artists which are placed at some anchored position,
3636
like 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

4146
axes_grid1
@@ -52,8 +57,12 @@ ratio. For example, displaying images of a same size with some fixed
5257
padding between them cannot be easily done in matplotlib. ImageGrid is
5358
used 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

155164
The 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

160174
AxesDivider
@@ -185,8 +199,12 @@ creates a new axes on the given side of ("top", "right", "bottom" and
185199
colorbar 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

216234
See 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

221244
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
250273
Example 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

256283
Example 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
276308
accordingly.
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

282319
AnchoredArtists
@@ -289,8 +326,12 @@ limited support for an arbitrary transform. For example, the ellipse
289326
in the example below will have width and height in the data
290327
coordinate.
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

296337
InsetLocator
@@ -323,16 +364,25 @@ some factor. For example, ::
323364
creates an inset axes whose data scale is half of the parent axes.
324365
Here 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

328374
For example, :func:`zoomed_inset_axes` can be used when you want the
329375
inset represents the zoom-up of the small portion in the parent axes.
330376
And :mod:`~mpl_toolkits/axes_grid/inset_locator` provides a helper
331377
function :func:`mark_inset` to mark the location of the area
332378
represented 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

338388
RGB 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+

doc/mpl_toolkits/axes_grid1/users/axes_divider.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,22 @@ may consider it as [0:2, 1].
8282

8383
See the example,
8484

85-
.. plot:: mpl_toolkits/axes_grid1/figures/simple_axes_divider2.py
86-
:include-source:
85+
.. figure:: ../../../gallery/axes_grid1/images/sphx_glr_simple_axes_divider2_001.png
86+
:target: ../../../gallery/axes_grid1/simple_axes_divider2.html
87+
:align: center
88+
:scale: 50
89+
90+
Simple Axes Divider2
8791

8892
You can adjust the size of the each axes according to their x or y
8993
data limits (AxesX and AxesY), similar to the axes aspect parameter.
9094

91-
.. plot:: mpl_toolkits/axes_grid1/figures/simple_axes_divider3.py
92-
:include-source:
95+
.. figure:: ../../../gallery/axes_grid1/images/sphx_glr_simple_axes_divider3_001.png
96+
:target: ../../../gallery/axes_grid1/simple_axes_divider3.html
97+
:align: center
98+
:scale: 50
99+
100+
Simple Axes Divider3
101+
102+
103+

doc/mpl_toolkits/axisartist/overview.rst

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ to draw ticks, ticklines and etc., Axes in axisartist uses special
1515
artist (AxisArtist) which can handle tick, ticklines and etc. for
1616
curved coordinate systems.
1717

18-
.. plot:: mpl_toolkits/axisartist/examples/demo_floating_axis.py
18+
.. figure:: ../../gallery/axisartist/images/sphx_glr_demo_floating_axis_001.png
19+
:target: ../../gallery/axisartist/demo_floating_axis.html
20+
:align: center
21+
:scale: 50
22+
23+
Demo Floating Axis
1924

2025
Since it uses special artists, some mpl commands that work on
2126
Axes.xaxis and Axes.yaxis may not work.
@@ -57,16 +62,25 @@ For example, you can hide the right, and top axis by ::
5762
ax.axis["top"].set_visible(False)
5863

5964

60-
.. plot:: mpl_toolkits/axisartist/figures/simple_axisline3.py
65+
.. figure:: ../../gallery/userdemo/images/sphx_glr_simple_axisline3_001.png
66+
:target: ../../gallery/userdemo/simple_axisline3.html
67+
:align: center
68+
:scale: 50
69+
70+
Simple Axisline3
6171

6272

6373
It is also possible to add an extra axis. For example, you may have an
6474
horizontal axis at y=0 (in data coordinate). ::
6575

6676
ax.axis["y=0"] = ax.new_floating_axis(nth_coord=0, value=0)
6777

68-
.. plot:: mpl_toolkits/axisartist/figures/simple_axisartist1.py
69-
:include-source:
78+
.. figure:: ../../gallery/userdemo/images/sphx_glr_simple_axisartist1_001.png
79+
:target: ../../gallery/userdemo/simple_axisartist1.html
80+
:align: center
81+
:scale: 50
82+
83+
Simple Axisartist1
7084

7185

7286
Or a fixed axis with some offset ::
@@ -93,7 +107,12 @@ to create a host subplot with axisartist.Axes, ::
93107
Here is an example that uses parasiteAxes.
94108

95109

96-
.. plot:: mpl_toolkits/axisartist/examples/demo_parasite_axes2.py
110+
.. figure:: ../../gallery/axisartist/images/sphx_glr_demo_parasite_axes2_001.png
111+
:target: ../../gallery/axisartist/demo_parasite_axes2.html
112+
:align: center
113+
:scale: 50
114+
115+
Demo Parasite Axes2
97116

98117

99118

@@ -103,7 +122,12 @@ Curvilinear Grid
103122
The motivation behind the AxisArtist module is to support curvilinear grid
104123
and ticks.
105124

106-
.. plot:: mpl_toolkits/axisartist/examples/demo_curvelinear_grid.py
125+
.. figure:: ../../gallery/axisartist/images/sphx_glr_demo_curvelinear_grid_001.png
126+
:target: ../../gallery/axisartist/demo_curvelinear_grid.html
127+
:align: center
128+
:scale: 50
129+
130+
Demo Curvelinear Grid
107131

108132
See :ref:`axisartist-manual` for more details.
109133

@@ -114,4 +138,16 @@ Floating Axes
114138
This also support a Floating Axes whose outer axis are defined as
115139
floating axis.
116140

117-
.. plot:: mpl_toolkits/axisartist/examples/demo_floating_axes.py
141+
.. figure:: ../../gallery/axisartist/images/sphx_glr_demo_floating_axes_001.png
142+
:target: ../../gallery/axisartist/demo_floating_axes.html
143+
:align: center
144+
:scale: 50
145+
146+
Demo Floating Axes
147+
148+
149+
150+
151+
152+
153+

0 commit comments

Comments
 (0)