@@ -2886,9 +2886,8 @@ def broken_barh(self, xranges, yrange, **kwargs):
28862886 return col
28872887
28882888 @_preprocess_data ()
2889- @_api .delete_parameter ("3.6" , "use_line_collection" )
28902889 def stem (self , * args , linefmt = None , markerfmt = None , basefmt = None , bottom = 0 ,
2891- label = None , use_line_collection = True , orientation = 'vertical' ):
2890+ label = None , orientation = 'vertical' ):
28922891 """
28932892 Create a stem plot.
28942893
@@ -2932,8 +2931,8 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
29322931 cycle.
29332932
29342933 Note: Markers specified through this parameter (e.g. 'x') will be
2935- silently ignored (unless using ``use_line_collection=False``).
2936- Instead, markers should be specified using *markerfmt*.
2934+ silently ignored. Instead, markers should be specified using
2935+ *markerfmt*.
29372936
29382937 markerfmt : str, optional
29392938 A string defining the color and/or shape of the markers at the stem
@@ -2953,14 +2952,6 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
29532952 label : str, default: None
29542953 The label to use for the stems in legends.
29552954
2956- use_line_collection : bool, default: True
2957- *Deprecated since 3.6*
2958-
2959- If ``True``, store and plot the stem lines as a
2960- `~.collections.LineCollection` instead of individual lines, which
2961- significantly increases performance. If ``False``, defaults to the
2962- old behavior of using a list of `.Line2D` objects.
2963-
29642955 data : indexable object, optional
29652956 DATA_PARAMETER_PLACEHOLDER
29662957
@@ -3024,27 +3015,12 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
30243015 basestyle , basemarker , basecolor = _process_plot_format (basefmt )
30253016
30263017 # New behaviour in 3.1 is to use a LineCollection for the stemlines
3027- if use_line_collection :
3028- if linestyle is None :
3029- linestyle = mpl .rcParams ['lines.linestyle' ]
3030- xlines = self .vlines if orientation == "vertical" else self .hlines
3031- stemlines = xlines (
3032- locs , bottom , heads ,
3033- colors = linecolor , linestyles = linestyle , label = "_nolegend_" )
3034- # Old behaviour is to plot each of the lines individually
3035- else :
3036- stemlines = []
3037- for loc , head in zip (locs , heads ):
3038- if orientation == 'horizontal' :
3039- xs = [bottom , head ]
3040- ys = [loc , loc ]
3041- else :
3042- xs = [loc , loc ]
3043- ys = [bottom , head ]
3044- l , = self .plot (xs , ys ,
3045- color = linecolor , linestyle = linestyle ,
3046- marker = linemarker , label = "_nolegend_" )
3047- stemlines .append (l )
3018+ if linestyle is None :
3019+ linestyle = mpl .rcParams ['lines.linestyle' ]
3020+ xlines = self .vlines if orientation == "vertical" else self .hlines
3021+ stemlines = xlines (
3022+ locs , bottom , heads ,
3023+ colors = linecolor , linestyles = linestyle , label = "_nolegend_" )
30483024
30493025 if orientation == 'horizontal' :
30503026 marker_x = heads
0 commit comments