Browse Source

Plot

pull/36/head
Jure Šorn 5 years ago
parent
commit
6d8a347fc0
2 changed files with 2 additions and 4 deletions
  1. 3
      README.md
  2. 3
      index.html

3
README.md

@ -2018,8 +2018,7 @@ Plot
```python
# $ pip3 install matplotlib
from matplotlib import pyplot
pyplot.plot(<data_1> [, <data_2>, ...])
pyplot.hist(<data>)
pyplot.plot(<data_1> [, <data_2>, ...]) # Or: hist, pie, ...
pyplot.savefig(<filename>)
pyplot.show()
pyplot.clf() # Clears figure.

3
index.html

@ -1732,8 +1732,7 @@ reader(adder(printer())) <span class="hljs-comment"># 100, 101, ..., 109</span>
<h2 id="plot"><a href="#plot" name="plot">#</a>Plot</h2>
<pre><code class="python language-python hljs"><span class="hljs-comment"># $ pip3 install matplotlib</span>
<span class="hljs-keyword">from</span> matplotlib <span class="hljs-keyword">import</span> pyplot
pyplot.plot(&lt;data_1&gt; [, &lt;data_2&gt;, ...])
pyplot.hist(&lt;data&gt;)
pyplot.plot(&lt;data_1&gt; [, &lt;data_2&gt;, ...]) <span class="hljs-comment"># Or: hist, pie, ...</span>
pyplot.savefig(&lt;filename&gt;)
pyplot.show()
pyplot.clf() <span class="hljs-comment"># Clears figure.</span>

|||||||
100:0
Loading…
Cancel
Save