Skip to content

Commit 498bbd3

Browse files
committed
Plot comments
1 parent 5a4b3ff commit 498bbd3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,10 +2274,10 @@ Plot
22742274
from matplotlib import pyplot
22752275
pyplot.plot(<y_data> [, label=<str>])
22762276
pyplot.plot(<x_data>, <y_data>)
2277-
pyplot.legend() # Adds legend.
2278-
pyplot.savefig(<filename>) # Saves figure.
2279-
pyplot.show() # Displays figure.
2280-
pyplot.clf() # Clears figure.
2277+
pyplot.legend() # Adds a legend.
2278+
pyplot.savefig(<filename>) # Saves the figure.
2279+
pyplot.show() # Displays the figure.
2280+
pyplot.clf() # Clears the figure.
22812281
```
22822282

22832283

@@ -2306,8 +2306,8 @@ def main():
23062306
wrapper(draw)
23072307

23082308
def draw(screen):
2309-
curs_set(0) # Makes cursor invisible.
2310-
screen.nodelay(True) # Makes getch() non-blocking.
2309+
curs_set(0) # Makes cursor invisible.
2310+
screen.nodelay(True) # Makes getch() non-blocking.
23112311
screen.clear()
23122312
screen.addstr(0, 0, 'Press ESC to quit.')
23132313
while screen.getch() != ascii.ESC:

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,10 +1962,10 @@
19621962
<span class="hljs-keyword">from</span> matplotlib <span class="hljs-keyword">import</span> pyplot
19631963
pyplot.plot(&lt;y_data&gt; [, label=&lt;str&gt;])
19641964
pyplot.plot(&lt;x_data&gt;, &lt;y_data&gt;)
1965-
pyplot.legend() <span class="hljs-comment"># Adds legend.</span>
1966-
pyplot.savefig(&lt;filename&gt;) <span class="hljs-comment"># Saves figure.</span>
1967-
pyplot.show() <span class="hljs-comment"># Displays figure.</span>
1968-
pyplot.clf() <span class="hljs-comment"># Clears figure.</span>
1965+
pyplot.legend() <span class="hljs-comment"># Adds a legend.</span>
1966+
pyplot.savefig(&lt;filename&gt;) <span class="hljs-comment"># Saves the figure.</span>
1967+
pyplot.show() <span class="hljs-comment"># Displays the figure.</span>
1968+
pyplot.clf() <span class="hljs-comment"># Clears the figure.</span>
19691969
</code></pre></div>
19701970

19711971
<div><h2 id="table"><a href="#table" name="table">#</a>Table</h2><div><h4 id="printsacsvfileasanasciitable">Prints a CSV file as an ASCII table:</h4><pre><code class="python language-python hljs"><span class="hljs-comment"># $ pip3 install tabulate</span>
@@ -1985,8 +1985,8 @@
19851985
wrapper(draw)
19861986

19871987
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">draw</span><span class="hljs-params">(screen)</span>:</span>
1988-
curs_set(<span class="hljs-number">0</span>) <span class="hljs-comment"># Makes cursor invisible.</span>
1989-
screen.nodelay(<span class="hljs-keyword">True</span>) <span class="hljs-comment"># Makes getch() non-blocking.</span>
1988+
curs_set(<span class="hljs-number">0</span>) <span class="hljs-comment"># Makes cursor invisible.</span>
1989+
screen.nodelay(<span class="hljs-keyword">True</span>) <span class="hljs-comment"># Makes getch() non-blocking.</span>
19901990
screen.clear()
19911991
screen.addstr(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-string">'Press ESC to quit.'</span>)
19921992
<span class="hljs-keyword">while</span> screen.getch() != ascii.ESC:

0 commit comments

Comments
 (0)