From 77c6779e921465e29a1a0e2095b4038ca7a673ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 20 Aug 2019 16:49:20 +0200 Subject: [PATCH] Plot --- README.md | 10 ++++++---- index.html | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9416698..4a0caa7 100644 --- a/README.md +++ b/README.md @@ -2227,10 +2227,12 @@ Plot ```python # $ pip3 install matplotlib from matplotlib import pyplot -pyplot.plot( [, , ...]) # Or: pyplot.hist() -pyplot.savefig() -pyplot.show() -pyplot.clf() # Clears figure. +pyplot.plot() +pyplot.plot(, ) +pyplot.plot(..., label=) # Use `pyplot.legend()` to add legend. +pyplot.savefig() # Saves figure. +pyplot.show() # Displays figure. +pyplot.clf() # Clears figure. ``` diff --git a/index.html b/index.html index 153792b..c58c7a3 100644 --- a/index.html +++ b/index.html @@ -1925,10 +1925,12 @@ reader(adder(printer())) # 100, 101, ..., 109

#Plot

# $ pip3 install matplotlib
 from matplotlib import pyplot
-pyplot.plot(<data_1> [, <data_2>, ...])  # Or: pyplot.hist(<data>)
-pyplot.savefig(<filename>)
-pyplot.show()
-pyplot.clf()                             # Clears figure.
+pyplot.plot(<y_data>)
+pyplot.plot(<x_data>, <y_data>)
+pyplot.plot(..., label=<str>)    # Use `pyplot.legend()` to add 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