8000 moved labeling donut tutorial to tutorials · matplotlib/matplotlib@b0d3739 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0d3739

Browse files
committed
moved labeling donut tutorial to tutorials
remove user guide tutorials and add annotation to tutorials landing page
1 parent d2cc4d0 commit b0d3739

File tree

2 files changed

+48
-54
lines changed

2 files changed

+48
-54
lines changed

galleries/tutorials/index.rst

Lines changed: 43 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,32 @@
33
Tutorials
44
=========
55

6-
This page contains a few tutorials for using Matplotlib. For the old tutorials, see :ref:`below <user_guide_tutorials>`.
6+
Walk-throughs of building visualizations that incorporate multiple features of the
7+
library.
8+
9+
10+
.. attention::
11+
12+
We're re-organizing! Please nominate :ref:`examples <examples-index>` that you think are good
13+
tutorials and propose new ones by opening an
14+
:ref:`issue or pull request < 10000 ;contribute_documentation>`!
15+
16+
If you are unsure of what we consider a tutorial, see our
17+
:ref:`content guide <content-tutorials>` and ask on our
18+
:ref:`communication <communication-channels>`
19+
20+
21+
To learn more about Matplotlib, see the :ref:`user guide <users-guide-index>` and
22+
:ref:`community resources <resources-index>`. For examples, see the
23+
:ref:`examples-index` gallery.
724

8-
For shorter examples, see our :ref:`examples page <examples-index>`.
9-
You can also find :ref:`external resources <resources-index>` and
10-
a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
1125

1226

1327
.. raw:: html
1428

1529
<div class="sphx-glr-thumbnails">
1630

31+
.. pyplot tutorial
1732
1833
.. raw:: html
1934

@@ -31,6 +46,7 @@ a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
3146
<div class="sphx-glr-thumbnail-title">Pyplot tutorial</div>
3247
</div>
3348

49+
.. images
3450
3551
.. raw:: html
3652

@@ -49,6 +65,8 @@ a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
4965
</div>
5066

5167

68+
.. lifecycle
69+
5270
.. raw:: html
5371

5472
<div class="sphx-glr-thumbcontainer" tooltip="This tutorial aims to show the beginning, middle, and end of a single visualization using Matpl...">
@@ -65,6 +83,7 @@ a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
6583
<div class="sphx-glr-thumbnail-title">The Lifecycle of a Plot</div>
6684
</div>
6785

86+
.. artist
6887
6988
.. raw:: html
7089

@@ -83,6 +102,25 @@ a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
83102
</div>
84103

85104

105+
.. annotation
106+
107+
.. raw:: html
108+
109+
<div class="sphx-glr-thumbcontainer" tooltip="Labeling pie and donut charts.">
110+
111+
.. only:: html
112+
113+
.. image:: /tutorials/images/thumb/sphx_glr_pie_and_donut_labels_thumb.png
114+
:alt: Labeling and annotating pie and donut charts.
115+
116+
:ref:`sphx_glr_tutorials_pie_and_donut_labels.py`
117+
118+
.. raw:: html
119+
120+
<div class="sphx-glr-thumbnail-title">Labeling a pie and a donut</div>
121+
</div>
122+
123+
86124
.. raw:: html
87125

88126
</div>
@@ -95,6 +133,7 @@ a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
95133
/tutorials/images
96134
/tutorials/lifecycle
97135
/tutorials/artists
136+
/tutorials/pie_and_donut_labels
98137

99138
.. only:: html
100139

@@ -107,53 +146,3 @@ a :ref:`FAQ <faq-index>` in our :ref:`user guide <users-guide-index>`.
107146
.. container:: sphx-glr-download sphx-glr-download-jupyter
108147

109148
:download:`Download all examples in Jupyter notebooks: tutorials_jupyter.zip </tutorials/tutorials_jupyter.zip>`
110-
111-
112-
113-
.. _user_guide_tutorials:
114-
115-
User guide tutorials
116-
--------------------
117-
118-
Many of our tutorials were moved from this section to :ref:`users-guide-index`:
119-
120-
Introductory
121-
^^^^^^^^^^^^
122-
123-
- :ref:`quick_start`
124-
- :ref:`customizing`
125-
- :ref:`animations`
126-
127-
Intermediate
128-
^^^^^^^^^^^^
129-
130-
- :ref:`legend_guide`
131-
- :ref:`color_cycle`
132-
- :ref:`constrainedlayout_guide`
133-
- :ref:`tight_layout_guide`
134-
- :ref:`arranging_axes`
135-
- :ref:`autoscale`
136-
- :ref:`imshow_extent`
137-
138-
Advanced
139-
^^^^^^^^
140-
141-
- :ref:`blitting`
142-
- :ref:`paths`
143-
- :ref:`patheffects_guide`
144-
- :ref:`transforms_tutorial`
145-
146-
Colors
147-
^^^^^^
148-
149-
See :ref:`tutorials-colors`.
150-
151-
Text
152-
^^^^
153-
154-
See :ref:`tutorials-text`.
155-
156-
Toolkits
157-
^^^^^^^^
158-
159-
See :ref:`tutorials-toolkits`.

galleries/examples/pie_and_polar_charts/pie_and_donut_labels.py renamed to galleries/tutorials/pie_and_donut_labels.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
.. redirect-from:: /gallery/pie_and_polar_charts/pie_and_donut_labels
3+
4+
.. _pie_donut_labels:
5+
26
==========================
37
Labeling a pie and a donut
48
==========================
@@ -122,6 +126,7 @@ def func(pct, allvals):
122126
# the ingredients would suffice for around 6 donuts - producing one huge
123127
# donut is untested and might result in kitchen errors.
124128

129+
# .. tags:: plot-type: pie, component: annotation, level: beginner
125130

126131
# %%
127132
#

0 commit comments

Comments
 (0)
0