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