Skip to content

Commit

Permalink
fix #4854: set default numpoints of legend entries to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Dec 3, 2015
1 parent 6bfd8b1 commit 0ebfc96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/mpl-data/stylelib/classic.mplstyle
Expand Up @@ -255,7 +255,7 @@ legend.fancybox : False # if True, use a rounded box for the
# legend, else a rectangle
legend.loc : upper right
legend.isaxes : True # this option is internally ignored
legend.numpoints : 2 # the number of points in the legend line
legend.numpoints : 1 # the number of points in the legend line
legend.fontsize : large
legend.borderpad : 0.4 # border whitespace in fontsize units
legend.markerscale : 1.0 # the relative size of legend markers vs. original
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Expand Up @@ -1005,7 +1005,7 @@ def validate_hist_bins(s):
'legend.isaxes': [True, validate_bool],

# the number of points in the legend line
'legend.numpoints': [2, validate_int],
'legend.numpoints': [1, validate_int],
# the number of points in the legend line for scatter
'legend.scatterpoints': [3, validate_int],
'legend.fontsize': ['large', validate_fontsize],
Expand Down
2 changes: 1 addition & 1 deletion matplotlibrc.template
Expand Up @@ -364,7 +364,7 @@ backend : %(backend)s
#legend.fancybox : False # if True, use a rounded box for the
# legend, else a rectangle
#legend.isaxes : True
#legend.numpoints : 2 # the number of points in the legend line
#legend.numpoints : 1 # the number of points in the legend line
#legend.fontsize : large
#legend.borderpad : 0.5 # border whitespace in fontsize units
#legend.markerscale : 1.0 # the relative size of legend markers vs. original
Expand Down

0 comments on commit 0ebfc96

Please sign in to comment.