Skip to content

Commit

Permalink
fix matplotlib#4854: set default numpoints of legend entries to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh authored and mdboom committed Jan 4, 2016
1 parent 409a943 commit 418b7cc
Show file tree
Hide file tree
Showing 33 changed files with 1,794 additions and 1,838 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/mpl-data/stylelib/classic.mplstyle
Expand Up @@ -256,7 +256,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 @@ -1026,7 +1026,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
Binary file modified lib/matplotlib/tests/baseline_images/test_axes/markevery.pdf
Binary file not shown.
Binary file modified lib/matplotlib/tests/baseline_images/test_axes/markevery.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
620 changes: 308 additions & 312 deletions lib/matplotlib/tests/baseline_images/test_axes/markevery.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lib/matplotlib/tests/baseline_images/test_axes/markevery_line.pdf
Binary file not shown.
Binary file modified lib/matplotlib/tests/baseline_images/test_axes/markevery_line.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
644 changes: 320 additions & 324 deletions lib/matplotlib/tests/baseline_images/test_axes/markevery_line.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 418b7cc

Please sign in to comment.