Skip to content

Commit 2defa25

Browse files
committed
Plot
1 parent 7c21cf8 commit 2defa25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,8 +2241,8 @@ from matplotlib import pyplot
22412241
```
22422242

22432243
```python
2244-
pyplot.plot(<y_data>) # X values start from 0.
2245-
pyplot.plot(<x_data>, <y_data>) # Add `label=<str>` for legend.
2244+
pyplot.plot(<y_data> [, label=<str>])
2245+
pyplot.plot(<x_data>, <y_data>)
22462246
```
22472247

22482248
```python

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,8 +1938,8 @@
19381938
<span class="hljs-keyword">from</span> matplotlib <span class="hljs-keyword">import</span> pyplot
19391939
</code></pre></div>
19401940

1941-
<pre><code class="python language-python hljs">pyplot.plot(&lt;y_data&gt;) <span class="hljs-comment"># X values start from 0.</span>
1942-
pyplot.plot(&lt;x_data&gt;, &lt;y_data&gt;) <span class="hljs-comment"># Add `label=&lt;str&gt;` for legend.</span>
1941+
<pre><code class="python language-python hljs">pyplot.plot(&lt;y_data&gt; [, label=&lt;str&gt;])
1942+
pyplot.plot(&lt;x_data&gt;, &lt;y_data&gt;)
19431943
</code></pre>
19441944
<pre><code class="python language-python hljs">pyplot.legend() <span class="hljs-comment"># Adds a legend.</span>
19451945
pyplot.savefig(&lt;filename&gt;) <span class="hljs-comment"># Saves figure.</span>

0 commit comments

Comments
 (0)