Browse Source

Plot

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

2
README.md

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

2
index.html

@ -1713,8 +1713,10 @@ reader(adder(printer())) <span class="hljs-comment"># 100, 101, ..., 109</span>
<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.savefig(&lt;filename&gt;)
pyplot.show()
pyplot.clf() <span class="hljs-comment"># Clears figure.</span>
</code></pre>
<h2 id="table"><a href="#table" name="table">#</a>Table</h2>
<h4 id="printsacsvfileasanasciitable">Prints a CSV file as an ASCII table:</h4>

Loading…
Cancel
Save