From 2defa259d8657ffc24d6f8383862fb6c363a5010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 15 Sep 2019 23:07:39 +0200 Subject: [PATCH] Plot --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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.