diff --git a/README.md b/README.md index 23f483f..cb26765 100644 --- a/README.md +++ b/README.md @@ -2274,10 +2274,10 @@ Plot from matplotlib import pyplot pyplot.plot( [, label=]) pyplot.plot(, ) -pyplot.legend() # Adds legend. -pyplot.savefig() # Saves figure. -pyplot.show() # Displays figure. -pyplot.clf() # Clears figure. +pyplot.legend() # Adds a legend. +pyplot.savefig() # Saves the figure. +pyplot.show() # Displays the figure. +pyplot.clf() # Clears the figure. ``` @@ -2306,8 +2306,8 @@ def main(): wrapper(draw) def draw(screen): - curs_set(0) # Makes cursor invisible. - screen.nodelay(True) # Makes getch() non-blocking. + curs_set(0) # Makes cursor invisible. + screen.nodelay(True) # Makes getch() non-blocking. screen.clear() screen.addstr(0, 0, 'Press ESC to quit.') while screen.getch() != ascii.ESC: diff --git a/index.html b/index.html index 1b3e4d0..c3df522 100644 --- a/index.html +++ b/index.html @@ -1962,10 +1962,10 @@ ValueError: malformed node or string from matplotlib import pyplot pyplot.plot(<y_data> [, label=<str>]) pyplot.plot(<x_data>, <y_data>) -pyplot.legend() # Adds legend. -pyplot.savefig(<filename>) # Saves figure. -pyplot.show() # Displays figure. -pyplot.clf() # Clears figure. +pyplot.legend() # Adds a legend. +pyplot.savefig(<filename>) # Saves the figure. +pyplot.show() # Displays the figure. +pyplot.clf() # Clears the figure.

#Table

Prints a CSV file as an ASCII table:

# $ pip3 install tabulate
@@ -1985,8 +1985,8 @@ pyplot.clf()                           # Clears figur
     wrapper(draw)
 
 def draw(screen):
-    curs_set(0)                        # Makes cursor invisible.
-    screen.nodelay(True)               # Makes getch() non-blocking.
+    curs_set(0)                                # Makes cursor invisible.
+    screen.nodelay(True)                       # Makes getch() non-blocking.
     screen.clear()
     screen.addstr(0, 0, 'Press ESC to quit.')
     while screen.getch() != ascii.ESC: