@@ -2396,23 +2396,71 @@ def stem(self, *args, **kwargs):
23962396
23972397 Call signatures::
23982398
2399- stem(y, linefmt='b-', markerfmt='bo', basefmt='r-' )
2400- stem(x, y, linefmt='b-', markerfmt='bo', basefmt='r-' )
2399+ stem(y)
2400+ stem(x, y)
24012401
2402- A stem plot plots vertical lines (using *linefmt*) at each *x*
2403- location from the baseline to *y*, and places a marker there
2404- using *markerfmt*. A horizontal line at 0 is plotted using
2405- *basefmt*.
2402+ A stem plot plots vertical lines at each *x* location from the baseline
2403+ to *y*, and places a marker there.
24062404
2407- If no *x* values are provided, the default is (0, 1, ..., len(y) - 1)
24082405
2409- Return value is a tuple (*markerline*, *stemlines*,
2410- *baseline*). See :class:`~matplotlib.container.StemContainer`
2406+ Parameters
2407+ ----------
2408+ x : array-like, optional
2409+ The x-positions of the stems. Default: (0, 1, ..., len(y) - 1).
2410+
2411+ y : array-like
2412+ The y-values of the stem heads.
2413+
2414+ linefmt : str, optional
2415+ A string defining the properties of the vertical lines. Usually,
2416+ this will be a color or a color and a linestyle:
2417+
2418+ ========= =============
2419+ Character Line Style
2420+ ========= =============
2421+ ``'-'`` solid line
2422+ ``'--'`` dashed line
2423+ ``'-.'`` dash-dot line
2424+ ``':'`` dotted line
2425+ ========= =============
2426+
2427+ Default: 'C0-', i.e. solid line with the first color of the color
2428+ cycle.
2429+
2430+ Note: While it is technically possible to specify valid formats
2431+ other than color or color and linestyle (e.g. 'rx' or '-.'), this
2432+ is beyond the intention of the method and will most likely not
2433+ result in a reasonable reasonable plot.
2434+
2435+ markerfmt : str, optional
2436+ A string defining the properties of the markers at the stem heads.
2437+ Default: 'C0o', i.e. filled circles with the first color of the
2438+ color cycle.
2439+
2440+ basefmt : str, optional
2441+ A format string defining the properties of the baseline.
2442+
2443+ Default: 'C3-' ('C2-' in classic mode).
2444+
2445+ bottom : float, optional, default: 0
2446+ The y-position of the baseline.
2447+
2448+ label : str, optional, default: None
2449+ The label to use for the stems in legends.
2450+
2451+
2452+ Returns
2453+ -------
2454+ a :class:`~matplotlib.container.StemContainer`
2455+
2456+ The stemcontainer may be treated like a tuple
2457+ (*markerline*, *stemlines*, *baseline*)
2458+
24112459
24122460 .. seealso::
2413- This
2414- `document <http://www.mathworks.com/help/techdoc/ref/stem.html>`_
2415- for details .
2461+ The MATLAB function
2462+ `stem <http://www.mathworks.com/help/techdoc/ref/stem.html>`_
2463+ which inspired this method .
24162464
24172465 """
24182466 remember_hold = self ._hold
0 commit comments