Skip to content

Commit 02582f8

Browse files
committed
Merge pull request matplotlib#1634 from tacaswell/scatterpoint_rcParam
add scatterpoints to rcParam
2 parents 06d7f9c + b475c86 commit 02582f8

File tree

10 files changed

+1133
-2
lines changed

10 files changed

+1133
-2
lines changed

lib/matplotlib/legend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(self, parent, handles, labels,
135135
numpoints=None, # the number of points in the legend line
136136
markerscale=None, # the relative size of legend markers
137137
# vs. original
138-
scatterpoints=3, # TODO: may be an rcParam
138+
scatterpoints=None, # number of scatter points
139139
scatteryoffsets=None,
140140
prop=None, # properties for the legend texts
141141
fontsize=None, # keyword to set font size directly

lib/matplotlib/rcsetup.py

+1
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ def __call__(self, s):
514514
'legend.loc' : ['upper right',validate_legend_loc], # at some point, this should be changed to 'best'
515515
'legend.isaxes' : [True,validate_bool], # this option is internally ignored - it never served any useful purpose
516516
'legend.numpoints' : [2, validate_int], # the number of points in the legend line
517+
'legend.scatterpoints' : [3, validate_int], # the number of points in the legend line for scatter
517518
'legend.fontsize' : ['large', validate_fontsize],
518519
'legend.markerscale' : [1.0, validate_float], # the relative size of legend markers vs. original
519520
'legend.shadow' : [False, validate_bool],
Binary file not shown.
Loading

0 commit comments

Comments
 (0)