Skip to content

Commit c9ab450

Browse files
committed
missing plt
1 parent 3dd279b commit c9ab450

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tutorials/Plot-Catalog/plot-catalog.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "",
99
"published": true
1010
},
11-
"signature": "sha256:a78b3ed3bde79cc3f9b07b7539cdedaac5809b9ad6712f275581de7b20d547ad"
11+
"signature": "sha256:a425c6e39049c726c7fafca412f96596f6cfb20bb5c535f3f2937b0aa4e1065b"
1212
},
1313
"nbformat": 3,
1414
"nbformat_minor": 0,
@@ -313,8 +313,8 @@
313313
"source": [
314314
"Here we simply make a scatter plot of the J-K color on the x-axis\n",
315315
"against the J magnitude on the y-axis. We use a trick to flip the\n",
316-
"y-axis `ylim(reversed(ylim()))`. Called with no arguments,\n",
317-
"`ylim()` or `plt.ylim()` will return a tuple with the axis bounds, \n",
316+
"y-axis `plt.ylim(reversed(plt.ylim()))`. Called with no arguments,\n",
317+
"`plt.ylim()` will return a tuple with the axis bounds, \n",
318318
"e.g. (0,10). Calling the function _with_ arguments will set the limits \n",
319319
"of the axis, so we simply set the limits to be the reverse of whatever they\n",
320320
"were before. Using this `pylab`-style plotting is convenient for\n",
@@ -327,7 +327,7 @@
327327
"collapsed": false,
328328
"input": [
329329
"plt.scatter(data[\"Jmag\"] - data[\"Kmag\"], data[\"Jmag\"]) # plot J-K vs. J\n",
330-
"plt.ylim(reversed(ylim())) # flip the y-axis\n",
330+
"plt.ylim(reversed(plt.ylim())) # flip the y-axis\n",
331331
"plt.xlabel(\"$J-K_s$\", fontsize=20)\n",
332332
"plt.ylabel(\"$J$\", fontsize=20)"
333333
],

0 commit comments

Comments
 (0)