@@ -1381,8 +1381,8 @@ def plot(self, *args, scalex=True, scaley=True, **kwargs):
1381
1381
1382
1382
Call signatures::
1383
1383
1384
- plot([x], y, [fmt], data=None, **kwargs)
1385
- plot([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
1384
+ plot([x], y, [fmt], /, *, data=None, **kwargs)
1385
+ plot([x], y, [fmt], [x2], y2, [fmt2], ..., /, **kwargs)
1386
1386
1387
1387
The coordinates of the points or line nodes are given by *x*, *y*.
1388
1388
@@ -1405,6 +1405,7 @@ def plot(self, *args, scalex=True, scaley=True, **kwargs):
1405
1405
1406
1406
When conflicting with *fmt*, keyword arguments take precedence.
1407
1407
1408
+
1408
1409
**Plotting labelled data**
1409
1410
1410
1411
There's a convenient way for plotting objects with labelled data (i.e.
@@ -1452,19 +1453,20 @@ def plot(self, *args, scalex=True, scaley=True, **kwargs):
1452
1453
Alternatively, you can also change the style cycle using the
1453
1454
'axes.prop_cycle' rcParam.
1454
1455
1456
+
1455
1457
Parameters
1456
1458
----------
1457
1459
x, y : array-like or scalar
1458
1460
The horizontal / vertical coordinates of the data points.
1459
- *x* values are optional. If not given, they default to
1460
- ``[0, ..., N-1]``.
1461
+ *x* values are optional and default to `range(len(y))`.
1462
+
1463
+ Commonly, these parameters are 1D arrays.
1461
1464
1462
- Commonly, these parameters are arrays of length N. However,
1463
- scalars are supported as well (equivalent to an array with
1464
- constant value).
1465
+ They can also be scalars, or two-dimensional (in that case, the
1466
+ columns represent separate data sets).
1465
1467
1466
- The parameters can also be 2-dimensional. Then, the columns
1467
- represent separate data sets .
1468
+ These arguments cannot be passed as keywords (as indicated by the
1469
+ ``/`` in the function signature) .
1468
1470
1469
1471
fmt : str, optional
1470
1472
A format string, e.g. 'ro' for red circles. See the *Notes*
0 commit comments