diff --git a/README.md b/README.md index f7f687b..0b0944b 100644 --- a/README.md +++ b/README.md @@ -2241,8 +2241,8 @@ from matplotlib import pyplot ``` ```python -pyplot.plot() # X values start from 0. -pyplot.plot(, ) # Add `label=` for legend. +pyplot.plot( [, label=]) +pyplot.plot(, ) ``` ```python diff --git a/index.html b/index.html index 6509963..8d58ade 100644 --- a/index.html +++ b/index.html @@ -1938,8 +1938,8 @@ reader(adder(printer())) # 100, 101, ..., 109 from matplotlib import pyplot -
pyplot.plot(<y_data>)                  # X values start from 0.
-pyplot.plot(<x_data>, <y_data>)        # Add `label=<str>` for legend.
+
pyplot.plot(<y_data> [, label=<str>])
+pyplot.plot(<x_data>, <y_data>)
 
pyplot.legend()                        # Adds a legend.
 pyplot.savefig(<filename>)             # Saves figure.