File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2241,8 +2241,8 @@ from matplotlib import pyplot
2241
2241
```
2242
2242
2243
2243
``` 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> )
2246
2246
```
2247
2247
2248
2248
``` python
Original file line number Diff line number Diff line change 1938
1938
< span class ="hljs-keyword "> from</ span > matplotlib < span class ="hljs-keyword "> import</ span > pyplot
1939
1939
</ code > </ pre > </ div >
1940
1940
1941
- < pre > < code class ="python language-python hljs "> pyplot.plot(<y_data>) < span class =" hljs-comment " > # X values start from 0. </ span >
1942
- pyplot.plot(<x_data>, <y_data>) < span class =" hljs-comment " > # Add `label=<str>` for legend. </ span >
1941
+ < pre > < code class ="python language-python hljs "> pyplot.plot(<y_data> [, label=<str>])
1942
+ pyplot.plot(<x_data>, <y_data>)
1943
1943
</ code > </ pre >
1944
1944
< pre > < code class ="python language-python hljs "> pyplot.legend() < span class ="hljs-comment "> # Adds a legend.</ span >
1945
1945
pyplot.savefig(<filename>) < span class ="hljs-comment "> # Saves figure.</ span >
You can’t perform that action at this time.
0 commit comments