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

Skip to content

Commit da9a8a3

Browse files
committed
Moved path and patheffects to artist [ci doc]
1 parent 31d0a17 commit da9a8a3

File tree

13 files changed

+20
-12
lines changed

13 files changed

+20
-12
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ per-file-ignores =
5555
lib/pylab.py: F401, F403
5656

5757
doc/conf.py: E402
58-
galleries/tutorials/advanced/path_tutorial.py: E402
59-
galleries/tutorials/advanced/patheffects_guide.py: E402
58+
galleries/users_explain/artists/paths.py: E402
59+
galleries/users_explain/artists/patheffects_guide.py: E402
6060
galleries/users_explain/artists/transforms_tutorial.py: E402, E501
6161
galleries/users_explain/colors/colormaps.py: E501
6262
galleries/users_explain/colors/colors.py: E402

doc/users/prev_whats_new/whats_new_0.99.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ New documentation
1414
Jae-Joon Lee has written two new guides :ref:`legend_guide`
1515
and :ref:`plotting-guide-annotation`. Michael Sarahan has written
1616
:doc:`/tutorials/introductory/images`. John Hunter has written two new tutorials on
17-
working with paths and transformations: :doc:`/tutorials/advanced/path_tutorial` and
17+
working with paths and transformations: :ref:`paths` and
1818
:ref:`transforms_tutorial`.
1919

2020
.. _whats-new-mplot3d:

doc/users/prev_whats_new/whats_new_1.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ instead of ``:context:`` any time you want to reset the context.
406406

407407
Legend and PathEffects documentation
408408
------------------------------------
409-
The :ref:`legend_guide` and :doc:`/tutorials/advanced/patheffects_guide` have both been
409+
The :ref:`legend_guide` and :ref:`patheffects_guide` have both been
410410
updated to better reflect the full potential of each of these powerful
411411
features.
412412

galleries/examples/misc/tickedstroke_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Matplotlib's :mod:`.patheffects` can be used to alter the way paths
77
are drawn at a low enough level that they can affect almost anything.
88
9-
The :doc:`patheffects guide</tutorials/advanced/patheffects_guide>`
9+
The :ref:`patheffects guide<patheffects_guide>`
1010
details the use of patheffects.
1111
1212
The `~matplotlib.patheffects.TickedStroke` patheffect illustrated here

galleries/users_explain/artists/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,7 @@ More details
194194

195195
Concept: Automated color cycle <color_cycle>
196196
Concept: optimizing Artists for performance <performance>
197+
Concept: Paths <paths>
198+
Concept: Path effects guide <patheffects_guide>
197199
In Depth: understanding the extent keyword argument of imshow <imshow_extent>
198200
transforms_tutorial

galleries/tutorials/advanced/patheffects_guide.py renamed to galleries/users_explain/artists/patheffects_guide.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
.. redirect-from:: /tutorials/advance/patheffects_guide
3+
4+
.. _patheffects_guide:
5+
26
==================
37
Path effects guide
48
==================

galleries/tutorials/advanced/path_tutorial.py renamed to galleries/users_explain/artists/paths.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
.. redirect-from:: /tutorials/advanced/path_tutorial
3+
4+
.. _paths:
5+
26
=============
37
Path Tutorial
48
=============

galleries/users_explain/axes/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Axes (or Subplots)
66
Matplotlib `~.axes.Axes` are the gateway to creating your data visualizations.
77
Once an Axes is placed on a figure there are many methods that can be used to
88
add data to the Axes. An Axes typically has a pair of :doc:`Axis <../axis/index>`
9-
Artists that define the data co-ordinate system, and include methods to add
9+
Artists that define the data coordinate system, and include methods to add
1010
annotations like x- and y-labels, titles, and legends.
1111

1212
.. _anatomy_local:

galleries/users_explain/axis/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Controlling and labelling Axis objects
44
--------------------------------------
55

66
Some good material in artist tutorial that should be cribbed from or used here.
7-

galleries/users_explain/figure/backends.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,4 @@ methods above. If ``name.of.the.backend`` is the module containing the
240240
backend, use ``module://name.of.the.backend`` as the backend name, e.g.
241241
``matplotlib.use('module://name.of.the.backend')``.
242242

243-
Information for backend implementers is available at :ref:`writing_backend_interface`.
243+
Information for backend implementers is available at :ref:`writing_backend_interface`.

galleries/users_explain/figure/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,4 +268,3 @@ More reading
268268
In depth: Interactive figures and asynchronous programming <interactive_guide>
269269
In depth: Event handling <event_handling>
270270
In depth: Writing a backend -- the pyplot interface <writing_a_backend_pyplot_interface>
271-

lib/matplotlib/patheffects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
`.Line2D` and `.Patch`.
44
55
.. seealso::
6-
:doc:`/tutorials/advanced/patheffects_guide`
6+
:ref:`patheffects_guide`
77
"""
88

99
from matplotlib.backend_bases import RendererBase

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ convention = "numpy"
112112
"lib/mpl_toolkits/axisartist/__init__.py" = ["F401"]
113113
"lib/pylab.py" = ["F401", "F403"]
114114

115-
"galleries/tutorials/advanced/path_tutorial.py" = ["E402"]
116-
"galleries/tutorials/advanced/patheffects_guide.py" = ["E402"]
115+
"galleries/users_explain/artists/paths.py" = ["E402"]
116+
"galleries/users_explain/artists/patheffects_guide.py" = ["E402"]
117117
"galleries/users_explain/artists/transforms_tutorial.py" = ["E402", "E501"]
118118
"galleries/users_explain/colors/colormaps.py" = ["E501"]
119119
"galleries/users_explain/colors/colors.py" = ["E402"]

0 commit comments

Comments
 (0)