@@ -1335,7 +1335,7 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
1335
1335
1336
1336
Call signatures::
1337
1337
1338
- plot([x], y, [fmt], data=None, **kwargs)
1338
+ plot([x], y, [fmt], *, data=None, **kwargs)
1339
1339
plot([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
1340
1340
1341
1341
The coordinates of the points or line nodes are given by *x*, *y*.
@@ -1359,6 +1359,7 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
1359
1359
1360
1360
When conflicting with *fmt*, keyword arguments take precedence.
1361
1361
1362
+
1362
1363
**Plotting labelled data**
1363
1364
1364
1365
There's a convenient way for plotting objects with labelled data (i.e.
@@ -1406,19 +1407,19 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
1406
1407
Alternatively, you can also change the style cycle using the
1407
1408
'axes.prop_cycle' rcParam.
1408
1409
1410
+
1409
1411
Parameters
1410
1412
----------
1411
1413
x, y : array-like or scalar
1412
1414
The horizontal / vertical coordinates of the data points.
1413
- *x* values are optional. If not given, they default to
1414
- ``[0, ..., N-1]``.
1415
+ *x* values are optional and default to `range(len(y))`.
1415
1416
1416
- Commonly, these parameters are arrays of length N. However,
1417
- scalars are supported as well (equivalent to an array with
1418
- constant value).
1417
+ Commonly, these parameters are 1D arrays.
1419
1418
1420
- The parameters can also be 2-dimensional. Then, the columns
1421
- represent separate data sets.
1419
+ They can also be scalars, or two-dimensional (in that case, the
1420
+ columns represent separate data sets).
1421
+
1422
+ These arguments cannot be passed as keywords.
1422
1423
1423
1424
fmt : str, optional
1424
1425
A format string, e.g. 'ro' for red circles. See the *Notes*
@@ -1428,6 +1429,8 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
1428
1429
basic line properties. All of these and more can also be
1429
1430
controlled by keyword arguments.
1430
1431
1432
+ This argument cannot be passed as keyword.
1433
+
1431
1434
data : indexable object, optional
1432
1435
An object with labelled data. If given, provide the label names to
1433
1436
plot in *x* and *y*.
0 commit comments