Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 603a34c

Browse files
committed
fig,ax --> fig, ax
1 parent 6de920d commit 603a34c

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

03_Image_Display_and_Manipulation.ipynb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
"outputs": [],
255255
"source": [
256256
"# create a matplotlib.pyplot figure\n",
257-
"fig,ax = plt.subplots()\n",
257+
"fig, ax = plt.subplots()\n",
258258
"# get an alias to the lsst.afw.display.Display() method\n",
259259
"display = afwDisplay.Display(frame=fig)\n",
260260
"# set the image stretch algorithm and range\n",
@@ -312,19 +312,15 @@
312312
"outputs": [],
313313
"source": [
314314
"fig, ax = plt.subplots(1, 2, figsize=(14, 7))\n",
315-
"\n",
316315
"plt.sca(ax[0]) # set the first axis as current\n",
317316
"display1 = afwDisplay.Display(frame=fig)\n",
318317
"display1.scale('linear', 'zscale')\n",
319318
"display1.mtv(calexp.image)\n",
320-
"\n",
321319
"plt.sca(ax[1]) # set the second axis as current\n",
322320
"display2 = afwDisplay.Display(frame=fig)\n",
323321
"display2.mtv(calexp.mask)\n",
324-
"\n",
325322
"plt.tight_layout()\n",
326323
"plt.show()\n",
327-
"\n",
328324
"remove_figure(fig)"
329325
]
330326
},
@@ -341,7 +337,7 @@
341337
"metadata": {},
342338
"outputs": [],
343339
"source": [
344-
"fig,ax = plt.subplots()\n",
340+
"fig, ax = plt.subplots()\n",
345341
"display = afwDisplay.Display(frame=fig)\n",
346342
"display.scale('linear', 'zscale')\n",
347343
"display.mtv(calexp.maskedImage)\n",
@@ -383,7 +379,7 @@
383379
"outputs": [],
384380
"source": [
385381
"# create a matplotlib.pyplot figure\n",
386-
"fig,ax = plt.subplots()\n",
382+
"fig, ax = plt.subplots()\n",
387383
"# get an alias to the lsst.afw.display.Display() method\n",
388384
"afw_display = afwDisplay.Display(frame=fig)\n",
389385
"# set the image stretch algorithm and range\n",
@@ -574,7 +570,7 @@
574570
"outputs": [],
575571
"source": [
576572
"# create a matplotlib.pyplot figure\n",
577-
"fig,ax = plt.subplots()\n",
573+
"fig, ax = plt.subplots()\n",
578574
"# get an alias to the lsst.afw.display.Display() method\n",
579575
"display = afwDisplay.Display(frame=fig)\n",
580576
"# set the image stretch algorithm and range\n",
@@ -648,7 +644,7 @@
648644
"metadata": {},
649645
"outputs": [],
650646
"source": [
651-
"fig,ax = plt.subplots()\n",
647+
"fig, ax = plt.subplots()\n",
652648
"afw_display = afwDisplay.Display(frame=fig)\n",
653649
"afw_display.scale('asinh', 'zscale')\n",
654650
"afw_display.mtv(cutout_image.image)\n",

0 commit comments

Comments
 (0)