Skip to content

Commit 262affa

Browse files
author
krasoa
committed
added labels to plot (else ax.legend() would have no effect)
1 parent 2e782b8 commit 262affa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

03-2020-11-20/notebooks/03-02-Plotting_with_Python.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@
279279
"outputs": [],
280280
"source": [
281281
"fig, ax = plt.subplots()\n",
282-
"ax.plot(X, C, color=\"green\")\n",
283-
"ax.plot(X, S, linestyle=\"--\", linewidth=3.5)"
282+
"ax.plot(X, C, color=\"green\", label='cosine')\n",
283+
"ax.plot(X, S, linestyle=\"--\", linewidth=3.5, label='sine')"
284284
]
285285
},
286286
{
@@ -516,7 +516,7 @@
516516
"name": "python",
517517
"nbconvert_exporter": "python",
518518
"pygments_lexer": "ipython3",
519-
"version": "3.7.3"
519+
"version": "3.8.6"
520520
},
521521
"livereveal": {
522522
"scroll": true,

0 commit comments

Comments
 (0)