File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1996,8 +1996,10 @@ Plot
1996
1996
# $ pip3 install matplotlib
1997
1997
from matplotlib import pyplot
1998
1998
pyplot.plot(< data_1> [, < data_2> , ... ])
1999
+ pyplot.hist(< data> )
1999
2000
pyplot.savefig(< filename> )
2000
2001
pyplot.show()
2002
+ pyplot.clf() # Clears figure.
2001
2003
```
2002
2004
2003
2005
Original file line number Diff line number Diff line change @@ -1713,8 +1713,10 @@ <h2 id="plot"><a href="#plot" name="plot">#</a>Plot</h2>
1713
1713
< pre > < code class ="python language-python hljs "> < span class ="hljs-comment "> # $ pip3 install matplotlib</ span >
1714
1714
< span class ="hljs-keyword "> from</ span > matplotlib < span class ="hljs-keyword "> import</ span > pyplot
1715
1715
pyplot.plot(<data_1> [, <data_2>, ...])
1716
+ pyplot.hist(<data>)
1716
1717
pyplot.savefig(<filename>)
1717
1718
pyplot.show()
1719
+ pyplot.clf() < span class ="hljs-comment "> # Clears figure.</ span >
1718
1720
</ code > </ pre >
1719
1721
< h2 id ="table "> < a href ="#table " name ="table "> #</ a > Table</ h2 >
1720
1722
< h4 id ="printsacsvfileasanasciitable "> Prints a CSV file as an ASCII table:</ h4 >
You can’t perform that action at this time.
0 commit comments