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

Skip to content

Commit 3730a22

Browse files
committed
DOC: Remove simple_legend examples from User Demo
The same plots are contained in the legend guide at https://matplotlib.org/devdocs/users/explain/axes/legend_guide.html#legend-location https://matplotlib.org/devdocs/users/explain/axes/legend_guide.html#multiple-legends-on-the-same-axes And there, they aleady have accompanying descriptions. Instead of moving these examples to the text_labels_and_annotations section, I've decided to remove them and instead link the existing legend examples with a see also to the legend guide. I believe this is more helpful than having more uncommented legend examples.
1 parent 2ab27cd commit 3730a22

File tree

5 files changed

+19
-48
lines changed

5 files changed

+19
-48
lines changed

galleries/examples/text_labels_and_annotations/figlegend_demo.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,10 @@
5151
fig.legend((l3, l4), ('Line 3', 'Line 4'), loc='outside right upper')
5252

5353
plt.show()
54+
55+
# %%
56+
#
57+
# .. seealso::
58+
#
59+
# The :ref:`legend_guide` contains an in depth discussion on the configuration
60+
# options for legends.

galleries/examples/text_labels_and_annotations/legend.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@
3737
#
3838
# - `matplotlib.axes.Axes.plot` / `matplotlib.pyplot.plot`
3939
# - `matplotlib.axes.Axes.legend` / `matplotlib.pyplot.legend`
40+
#
41+
# .. seealso::
42+
#
43+
# The :ref:`legend_guide` contains an in depth discussion on the configuration
44+
# options for legends.

galleries/examples/text_labels_and_annotations/legend_demo.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,10 @@ def create_artists(self, legend, orig_handle,
178178
handlelength=2.5, handleheight=3)
179179

180180
plt.show()
181+
182+
# %%
183+
#
184+
# .. seealso::
185+
#
186+
# The :ref:`legend_guide` contains an in depth discussion on the configuration
187+
# options for legends.

galleries/examples/userdemo/simple_legend01.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

galleries/examples/userdemo/simple_legend02.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)