Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b6d2641

Browse filesBrowse files
esibingamelissawm
andauthored
Apply suggestions from code review
Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
1 parent 2ae0421 commit b6d2641
Copy full SHA for b6d2641

File tree

Expand file treeCollapse file tree

2 files changed

+23
-12
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+23
-12
lines changed

‎galleries/examples/tag_glossary.rst

Copy file name to clipboardExpand all lines: galleries/examples/tag_glossary.rst
+8-4Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ III. Domain tags: what discipline(s) might seek this example consistently?
99
IV. Internal tags: what information is helpful for maintainers or contributors?
1010

1111

12-
*1. API tags: what content from the API reference is in the example?*
12+
1. API tags: what content from the API reference is in the example?
13+
-------------------------------------------------------------------
1314

1415
+-----------------------------------+---------------------------------------------+
1516
|``tag`` | use case - if not obvious |
@@ -113,7 +114,8 @@ IV. Internal tags: what information is helpful for maintainers or contributors?
113114
+-----------------------------------+---------------------------------------------+
114115

115116

116-
*2. Structural tags: what format is the example? What context can we provide?*
117+
2. Structural tags: what format is the example? What context can we provide?
118+
----------------------------------------------------------------------------
117119

118120
+----------------------------+-------------------------------------------------------------------+
119121
|``tag`` | use case |
@@ -137,7 +139,8 @@ IV. Internal tags: what information is helpful for maintainers or contributors?
137139
|``purpose: fun`` |just for fun! |
138140
+----------------------------+-------------------------------------------------------------------+
139141

140-
*3. Domain tags: what discipline(s) might seek this example consistently?*
142+
3. Domain tags: what discipline(s) might seek this example consistently?
143+
------------------------------------------------------------------------
141144

142145
Note: it's futile to draw fences around "who owns what", and that's not the point of domain tags. Domain tags help groups of people to privately organize relevant information, and so are not displayed publicly. See below for a list of existing domain tags. If you don't see the one you're looking for and you think it should exist, consider proposing it.
143146

@@ -157,7 +160,8 @@ Note: it's futile to draw fences around "who owns what", and that's not the poin
157160
|``domain: signal-processing`` | |
158161
+-------------------------------+----------------------------------------+
159162

160-
*4. Internal tags: what information is helpful for maintainers or contributors?*
163+
4. Internal tags: what information is helpful for maintainers or contributors?
164+
------------------------------------------------------------------------------
161165

162166
+-------------------------------+-----------------------------------------------------------------------+
163167
|``tag`` | use case |

‎galleries/examples/tag_guidelines.rst

Copy file name to clipboardExpand all lines: galleries/examples/tag_guidelines.rst
+15-8Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Guidelines for assigning tags to gallery examples
22
=================================================
33

4-
*Why do we need tags?*
4+
Why do we need tags?
5+
--------------------
56

67
Tags serve multiple purposes.
78

@@ -11,7 +12,8 @@ They allow for better discoverability, search, and browse functions. They are he
1112

1213
Hidden tags provide additional functionality for maintainers and contributors.
1314

14-
*What gets a tag?*
15+
What gets a tag?
16+
----------------
1517

1618
Every gallery example should be tagged with:
1719

@@ -24,14 +26,15 @@ Tags can repeat existing forms of organization (e.g. an example is in the Animat
2426

2527
Tags are helpful to denote particularly good "byproduct" examples. E.g. the explicit purpose of a gallery example might be to demonstrate a colormap, but it's also a good demonstration of a legend. Tag ``legend`` to indicate that, rather than changing the title or the scope of the example.
2628

27-
*Tag Categories* - See :doc:`Tag Glossary <tag_glossary>` for a complete list of tags.
29+
**Tag Categories** - See :doc:`Tag Glossary <tag_glossary>` for a complete list of tags.
2830

2931
I. API tags: what content from the API reference is in the example?
3032
II. Structural tags: what format is the example? What context can we provide?
3133
III. Domain tags: what discipline(s) might seek this example consistently?
3234
IV. Internal tags: what information is helpful for maintainers or contributors?
3335

34-
*Proposing new tags*
36+
Proposing new tags
37+
------------------
3538

3639
1. Review existing tag list, looking out for similar entries (i.e. ``axes`` and ``axis``).
3740
2. If a relevant tag or subcategory does not yet exist, propose it. Each tag is two parts: ``subcategory: tag``. Tags should be one or two words.
@@ -40,20 +43,24 @@ IV. Internal tags: what information is helpful for maintainers or contributors?
4043

4144
Note: Tagging organization aims to work for 80-90% of cases. Some examples fall outside of the tagging structure. Niche or specific examples shouldn't be given standalone tags that won't apply to other examples.
4245

43-
*How to tag?*
46+
How to tag?
47+
-----------
4448
where you put the directive is where the tag will show
4549

46-
**Related content**
50+
Related content
51+
---------------
4752

48-
*What is a gallery example?*
53+
What is a gallery example?
54+
^^^^^^^^^^^^^^^^^^^^^^^^^^
4955

5056
The gallery of examples contains visual demonstrations of matplolib features. Gallery examples exist so that users can scan through visual examples.
5157

5258
Unlike tutorials or user guides, gallery examples teach by demonstration, rather than by explanation or instruction.
5359

5460
Gallery examples should avoid instruction or excessive explanation except for brief clarifying code comments. Instead, they can tag related concepts and/or link to relevant tutorials or user guides.
5561

56-
Format:
62+
Format
63+
^^^^^^
5764

5865
All gallery examples should aim to follow the following format:
5966

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.