From d58eda53bafec8700970f04e4e7bc396bd24b670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 15 Sep 2019 23:14:41 +0200 Subject: [PATCH] Plot --- README.md | 6 ------ index.html | 10 ++++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0b0944b..ba96c95 100644 --- a/README.md +++ b/README.md @@ -2238,14 +2238,8 @@ Plot ```python # $ pip3 install matplotlib from matplotlib import pyplot -``` - -```python pyplot.plot( [, label=]) pyplot.plot(, ) -``` - -```python pyplot.legend() # Adds a legend. pyplot.savefig() # Saves figure. pyplot.show() # Displays figure. diff --git a/index.html b/index.html index 8d58ade..c853d67 100644 --- a/index.html +++ b/index.html @@ -1936,16 +1936,14 @@ reader(adder(printer())) # 100, 101, ..., 109

#Plot

# $ pip3 install matplotlib
 from matplotlib import pyplot
-
- -
pyplot.plot(<y_data> [, label=<str>])
+pyplot.plot(<y_data> [, label=<str>])
 pyplot.plot(<x_data>, <y_data>)
-
-
pyplot.legend()                        # Adds a legend.
+pyplot.legend()                        # Adds a legend.
 pyplot.savefig(<filename>)             # Saves figure.
 pyplot.show()                          # Displays figure.
 pyplot.clf()                           # Clears figure.
-
+ +

#Table

Prints a CSV file as an ASCII table:

# $ pip3 install tabulate
 import csv, tabulate
 with open(<filename>, encoding='utf-8', newline='') as file: