Skip to content

Commit fbb8c19

Browse files
committed
Plot
1 parent 6607b55 commit fbb8c19

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,8 +1996,10 @@ Plot
19961996
# $ pip3 install matplotlib
19971997
from matplotlib import pyplot
19981998
pyplot.plot(<data_1> [, <data_2>, ...])
1999+
pyplot.hist(<data>)
19992000
pyplot.savefig(<filename>)
20002001
pyplot.show()
2002+
pyplot.clf() # Clears figure.
20012003
```
20022004

20032005

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,8 +1713,10 @@ <h2 id="plot"><a href="#plot" name="plot">#</a>Plot</h2>
17131713
<pre><code class="python language-python hljs"><span class="hljs-comment"># $ pip3 install matplotlib</span>
17141714
<span class="hljs-keyword">from</span> matplotlib <span class="hljs-keyword">import</span> pyplot
17151715
pyplot.plot(&lt;data_1&gt; [, &lt;data_2&gt;, ...])
1716+
pyplot.hist(&lt;data&gt;)
17161717
pyplot.savefig(&lt;filename&gt;)
17171718
pyplot.show()
1719+
pyplot.clf() <span class="hljs-comment"># Clears figure.</span>
17181720
</code></pre>
17191721
<h2 id="table"><a href="#table" name="table">#</a>Table</h2>
17201722
<h4 id="printsacsvfileasanasciitable">Prints a CSV file as an ASCII table:</h4>

0 commit comments

Comments
 (0)