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

Skip to content

Commit 418b7cc

Browse files
gautehmdboom
authored andcommitted
fix #4854: set default numpoints of legend entries to 1
1 parent 409a943 commit 418b7cc

33 files changed

+1794
-1838
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ legend.fancybox : False # if True, use a rounded box for the
256256
# legend, else a rectangle
257257
legend.loc : upper right
258258
legend.isaxes : True # this option is internally ignored
259-
legend.numpoints : 2 # the number of points in the legend line
259+
legend.numpoints : 1 # the number of points in the legend line
260260
legend.fontsize : large
261261
legend.borderpad : 0.4 # border whitespace in fontsize units
262262
legend.markerscale : 1.0 # the relative size of legend markers vs. original

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ def validate_hist_bins(s):
10261026
'legend.isaxes': [True, validate_bool],
10271027

10281028
# the number of points in the legend line
1029-
'legend.numpoints': [2, validate_int],
1029+
'legend.numpoints': [1, validate_int],
10301030
# the number of points in the legend line for scatter
10311031
'legend.scatterpoints': [3, validate_int],
10321032
'legend.fontsize': ['large', validate_fontsize],
Binary file not shown.
Loading

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

Lines changed: 308 additions & 312 deletions
Loading
Binary file not shown.

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

Lines changed: 320 additions & 324 deletions
Loading

0 commit comments

Comments
 (0)