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 86b7a59

Browse filesBrowse files
gautehmdboom
authored andcommitted
fix #4854: set default numpoints of legend entries to 1
1 parent bba003f commit 86b7a59
Copy full SHA for 86b7a59
Expand file treeCollapse file tree

33 files changed

+1794
-1838
lines changed

‎lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Copy file name to clipboardExpand all lines: lib/matplotlib/mpl-data/stylelib/classic.mplstyle
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ legend.fancybox : False # if True, use a rounded box for the
263263
# legend, else a rectangle
264264
legend.loc : upper right
265265
legend.isaxes : True # this option is internally ignored
266-
legend.numpoints : 2 # the number of points in the legend line
266+
legend.numpoints : 1 # the number of points in the legend line
267267
legend.fontsize : large
268268
legend.borderpad : 0.4 # border whitespace in fontsize units
269269
legend.markerscale : 1.0 # the relative size of legend markers vs. original

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def validate_hist_bins(s):
10331033
'legend.isaxes': [True, validate_bool],
10341034

10351035
# the number of points in the legend line
1036-
'legend.numpoints': [2, validate_int],
1036+
'legend.numpoints': [1, validate_int],
10371037
# the number of points in the legend line for scatter
10381038
'legend.scatterpoints': [3, validate_int],
10391039
'legend.fontsize': ['large', validate_fontsize],
Binary file not shown.
Loading

‎lib/matplotlib/tests/baseline_images/test_axes/markevery.svg

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/baseline_images/test_axes/markevery.svg
+308-312Lines changed: 308 additions & 312 deletions
Loading
Binary file not shown.
Loading

‎lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg
+320-324Lines changed: 320 additions & 324 deletions
Loading
Loading

0 commit comments

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