@@ -124,9 +124,10 @@ def set_title(self, label, fontdict=None, loc="center", **kwargs):
124124
125125 Other parameters
126126 ----------------
127- Other keyword arguments are text properties, see
128- :class:`~matplotlib.text.Text` for a list of valid text
129- properties.
127+ kwargs : text properties
128+ Other keyword arguments are text properties, see
129+ :class:`~matplotlib.text.Text` for a list of valid text
130+ properties.
130131 """
131132 try :
132133 title = {'left' : self ._left_title ,
@@ -2883,7 +2884,7 @@ def xywhere(xs, ys, mask):
28832884
28842885 return errorbar_container # (l0, caplines, barcols)
28852886
2886- def boxplot (self , x , notch = False , sym = 'b+' , vert = True , whis = 1.5 ,
2887+ def boxplot (self , x , notch = False , sym = None , vert = True , whis = 1.5 ,
28872888 positions = None , widths = None , patch_artist = False ,
28882889 bootstrap = None , usermedians = None , conf_intervals = None ,
28892890 meanline = False , showmeans = False , showcaps = True ,
@@ -2919,11 +2920,13 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
29192920 If False, produces a rectangular box plot.
29202921 If True, will produce a notched box plot
29212922
2922- sym : str, default = 'b+'
2923+ sym : str or None , default = None
29232924 The default symbol for flier points.
29242925 Enter an empty string ('') if you don't want to show fliers.
2926+ If `None`, then the fliers default to 'b+' If you want more
2927+ control use the fliersprop kwarg.
29252928
2926- vert : bool, default = False
2929+ vert : bool, default = True
29272930 If True (default), makes the boxes vertical.
29282931 If False, makes horizontal boxes.
29292932
@@ -3021,10 +3024,11 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
30213024 Returns
30223025 -------
30233026
3024- A dictionary mapping each component of the boxplot
3025- to a list of the :class:`matplotlib.lines.Line2D`
3026- instances created. That dictionary has the following keys
3027- (assuming vertical boxplots):
3027+ result : dict
3028+ A dictionary mapping each component of the boxplot
3029+ to a list of the :class:`matplotlib.lines.Line2D`
3030+ instances created. That dictionary has the following keys
3031+ (assuming vertical boxplots):
30283032
30293033 - boxes: the main body of the boxplot showing the quartiles
30303034 and the median's confidence intervals if enabled.
@@ -3043,10 +3047,39 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
30433047 """
30443048 bxpstats = cbook .boxplot_stats (x , whis = whis , bootstrap = bootstrap ,
30453049 labels = labels )
3050+ # make sure we have a dictionary
30463051 if flierprops is None :
3047- flierprops = dict (sym = sym )
3048- else :
3049- flierprops ['sym' ] = sym
3052+ flierprops = dict ()
3053+ # if non-default sym value, put it into the flier dictionary
3054+ # the logic for providing the default symbol ('b+') now lives
3055+ # in bxp in the initial value of final_flierprops
3056+ # handle all of the `sym` related logic here so we only have to pass
3057+ # on the flierprops dict.
3058+ if sym is not None :
3059+ # no-flier case, which should really be done with
3060+ # 'showfliers=False' but none-the-less deal with it to keep back
3061+ # compatibility
3062+ if sym == '' :
3063+ # blow away existing dict and make one for invisible markers
3064+ flierprops = dict (linestyle = 'none' , marker = '' ,
3065+ markeredgecolor = 'none' ,
3066+ markerfacecolor = 'none' )
3067+ # now process the symbol string
3068+ else :
3069+ # process the symbol string
3070+ # discarded linestyle
3071+ _ , marker , color = _process_plot_format (sym )
3072+ # if we have a marker, use it
3073+ if marker is not None :
3074+ flierprops ['marker' ] = marker
3075+ # if we have a color, use it
3076+ if color is not None :
3077+ flierprops ['color' ] = color
3078+ # assume that if color is passed in the user want
3079+ # filled symbol, if the users want more control use
3080+ # flierprops
3081+ flierprops ['markeredgecolor' ] = color
3082+ flierprops ['markerfacecolor' ] = color
30503083
30513084 # replace medians if necessary:
30523085 if usermedians is not None :
@@ -3288,24 +3321,9 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
32883321 final_flierprops = dict (linestyle = 'none' , marker = '+' ,
32893322 markeredgecolor = 'b' ,
32903323 markerfacecolor = 'none' )
3324+
32913325 # flier (outlier) properties
32923326 if flierprops is not None :
3293- sym = flierprops .pop ('sym' , None )
3294-
3295- # watch inverted logic, checks for non-default
3296- # value of `sym`
3297- if not (sym == '' or (sym is None )):
3298- # process the symbol string
3299- # discarded linestyle
3300- _ , marker , color = _process_plot_format (sym )
3301- if marker is not None :
3302- flierprops ['marker' ] = marker
3303- if color is not None :
3304- flierprops ['color' ] = color
3305- # assume that if color is passed in the user want
3306- # filled symbol
3307- flierprops ['markeredgecolor' ] = color
3308- flierprops ['markerfacecolor' ] = color
33093327 final_flierprops .update (flierprops )
33103328
33113329 # median line properties
@@ -5032,6 +5050,7 @@ def pcolormesh(self, *args, **kwargs):
50325050
50335051 *edgecolors*: [*None* | ``'None'`` | ``'face'`` | color |
50345052 color sequence]
5053+
50355054 If *None*, the rc setting is used by default.
50365055
50375056 If ``'None'``, edges will not be visible.
0 commit comments