Browse Source

Plot

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

4
README.md

@ -2241,8 +2241,8 @@ from matplotlib import pyplot
```
```python
pyplot.plot(<y_data>) # X values start from 0.
pyplot.plot(<x_data>, <y_data>) # Add `label=<str>` for legend.
pyplot.plot(<y_data> [, label=<str>])
pyplot.plot(<x_data>, <y_data>)
```
```python

4
index.html

@ -1938,8 +1938,8 @@ reader(adder(printer())) <span class="hljs-comment"># 100, 101, ..., 109</span>
<span class="hljs-keyword">from</span> matplotlib <span class="hljs-keyword">import</span> pyplot
</code></pre></div>
<pre><code class="python language-python hljs">pyplot.plot(&lt;y_data&gt;) <span class="hljs-comment"># X values start from 0.</span>
pyplot.plot(&lt;x_data&gt;, &lt;y_data&gt;) <span class="hljs-comment"># Add `label=&lt;str&gt;` for legend.</span>
<pre><code class="python language-python hljs">pyplot.plot(&lt;y_data&gt; [, label=&lt;str&gt;])
pyplot.plot(&lt;x_data&gt;, &lt;y_data&gt;)
</code></pre>
<pre><code class="python language-python hljs">pyplot.legend() <span class="hljs-comment"># Adds a legend.</span>
pyplot.savefig(&lt;filename&gt;) <span class="hljs-comment"># Saves figure.</span>

Loading…
Cancel
Save