|
254 | 254 | "outputs": [], |
255 | 255 | "source": [ |
256 | 256 | "# create a matplotlib.pyplot figure\n", |
257 | | - "fig,ax = plt.subplots()\n", |
| 257 | + "fig, ax = plt.subplots()\n", |
258 | 258 | "# get an alias to the lsst.afw.display.Display() method\n", |
259 | 259 | "display = afwDisplay.Display(frame=fig)\n", |
260 | 260 | "# set the image stretch algorithm and range\n", |
|
312 | 312 | "outputs": [], |
313 | 313 | "source": [ |
314 | 314 | "fig, ax = plt.subplots(1, 2, figsize=(14, 7))\n", |
315 | | - "\n", |
316 | 315 | "plt.sca(ax[0]) # set the first axis as current\n", |
317 | 316 | "display1 = afwDisplay.Display(frame=fig)\n", |
318 | 317 | "display1.scale('linear', 'zscale')\n", |
319 | 318 | "display1.mtv(calexp.image)\n", |
320 | | - "\n", |
321 | 319 | "plt.sca(ax[1]) # set the second axis as current\n", |
322 | 320 | "display2 = afwDisplay.Display(frame=fig)\n", |
323 | 321 | "display2.mtv(calexp.mask)\n", |
324 | | - "\n", |
325 | 322 | "plt.tight_layout()\n", |
326 | 323 | "plt.show()\n", |
327 | | - "\n", |
328 | 324 | "remove_figure(fig)" |
329 | 325 | ] |
330 | 326 | }, |
|
341 | 337 | "metadata": {}, |
342 | 338 | "outputs": [], |
343 | 339 | "source": [ |
344 | | - "fig,ax = plt.subplots()\n", |
| 340 | + "fig, ax = plt.subplots()\n", |
345 | 341 | "display = afwDisplay.Display(frame=fig)\n", |
346 | 342 | "display.scale('linear', 'zscale')\n", |
347 | 343 | "display.mtv(calexp.maskedImage)\n", |
|
383 | 379 | "outputs": [], |
384 | 380 | "source": [ |
385 | 381 | "# create a matplotlib.pyplot figure\n", |
386 | | - "fig,ax = plt.subplots()\n", |
| 382 | + "fig, ax = plt.subplots()\n", |
387 | 383 | "# get an alias to the lsst.afw.display.Display() method\n", |
388 | 384 | "afw_display = afwDisplay.Display(frame=fig)\n", |
389 | 385 | "# set the image stretch algorithm and range\n", |
|
574 | 570 | "outputs": [], |
575 | 571 | "source": [ |
576 | 572 | "# create a matplotlib.pyplot figure\n", |
577 | | - "fig,ax = plt.subplots()\n", |
| 573 | + "fig, ax = plt.subplots()\n", |
578 | 574 | "# get an alias to the lsst.afw.display.Display() method\n", |
579 | 575 | "display = afwDisplay.Display(frame=fig)\n", |
580 | 576 | "# set the image stretch algorithm and range\n", |
|
648 | 644 | "metadata": {}, |
649 | 645 | "outputs": [], |
650 | 646 | "source": [ |
651 | | - "fig,ax = plt.subplots()\n", |
| 647 | + "fig, ax = plt.subplots()\n", |
652 | 648 | "afw_display = afwDisplay.Display(frame=fig)\n", |
653 | 649 | "afw_display.scale('asinh', 'zscale')\n", |
654 | 650 | "afw_display.mtv(cutout_image.image)\n", |
|
0 commit comments