Skip to content

Commit 0ebfc96

Browse files
committed
fix #4854: set default numpoints of legend entries to 1
1 parent 6bfd8b1 commit 0ebfc96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ legend.fancybox : False # if True, use a rounded box for the
255255
# legend, else a rectangle
256256
legend.loc : upper right
257257
legend.isaxes : True # this option is internally ignored
258-
legend.numpoints : 2 # the number of points in the legend line
258+
legend.numpoints : 1 # the number of points in the legend line
259259
legend.fontsize : large
260260
legend.borderpad : 0.4 # border whitespace in fontsize units
261261
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
@@ -1005,7 +1005,7 @@ def validate_hist_bins(s):
10051005
'legend.isaxes': [True, validate_bool],
10061006

10071007
# the number of points in the legend line
1008-
'legend.numpoints': [2, validate_int],
1008+
'legend.numpoints': [1, validate_int],
10091009
# the number of points in the legend line for scatter
10101010
'legend.scatterpoints': [3, validate_int],
10111011
'legend.fontsize': ['large', validate_fontsize],

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ backend : %(backend)s
364364
#legend.fancybox : False # if True, use a rounded box for the
365365
# legend, else a rectangle
366366
#legend.isaxes : True
367-
#legend.numpoints : 2 # the number of points in the legend line
367+
#legend.numpoints : 1 # the number of points in the legend line
368368
#legend.fontsize : large
369369
#legend.borderpad : 0.5 # border whitespace in fontsize units
370370
#legend.markerscale : 1.0 # the relative size of legend markers vs. original

0 commit comments

Comments
 (0)