|
391 | 391 | "outputs": [], |
392 | 392 | "source": [ |
393 | 393 | "fig, ax = plt.subplots()\n", |
394 | | - "display = afwDisplay.Display(frame=fig)\n", |
395 | | - "display.scale('linear', 'zscale')\n", |
396 | | - "display.image(deep_coadd.image)\n", |
| 394 | + "afw_display = afwDisplay.Display(frame=fig)\n", |
| 395 | + "afw_display.scale('linear', 'zscale')\n", |
| 396 | + "afw_display.image(deep_coadd.image)\n", |
397 | 397 | "plt.show()\n", |
398 | 398 | "remove_figure(fig)" |
399 | 399 | ] |
|
406 | 406 | "> Figure 1: A `deep_coadd` with the `linear` and `zscale` scaling and without the mask overlay, displayed in grayscale with a scale bar at right. Axes labels are in pixels. " |
407 | 407 | ] |
408 | 408 | }, |
| 409 | + { |
| 410 | + "cell_type": "markdown", |
| 411 | + "id": "224d5adb-6d3b-484d-bc43-910c7f0a401c", |
| 412 | + "metadata": {}, |
| 413 | + "source": [ |
| 414 | + "Read the API documentation about the above functions using the Jupyter notebook `help()` function." |
| 415 | + ] |
| 416 | + }, |
| 417 | + { |
| 418 | + "cell_type": "code", |
| 419 | + "execution_count": null, |
| 420 | + "id": "80560317-1473-41c3-8534-da8cdacceecf", |
| 421 | + "metadata": {}, |
| 422 | + "outputs": [], |
| 423 | + "source": [ |
| 424 | + "help(afw_display.scale)" |
| 425 | + ] |
| 426 | + }, |
| 427 | + { |
| 428 | + "cell_type": "code", |
| 429 | + "execution_count": null, |
| 430 | + "id": "0861e1d6-e5ca-4a5c-b587-c476a9db41f2", |
| 431 | + "metadata": {}, |
| 432 | + "outputs": [], |
| 433 | + "source": [ |
| 434 | + "help(afw_display.image)" |
| 435 | + ] |
| 436 | + }, |
409 | 437 | { |
410 | 438 | "cell_type": "markdown", |
411 | 439 | "id": "b9cf4589-1cb6-4d89-98c4-b090028a6e4f", |
412 | 440 | "metadata": {}, |
413 | 441 | "source": [ |
414 | | - "### 2.1 Scaling options " |
| 442 | + "### 2.1. Scaling options " |
415 | 443 | ] |
416 | 444 | }, |
417 | 445 | { |
|
461 | 489 | "id": "ebc31bf9-13c1-4aa8-9649-e1f06a92de70", |
462 | 490 | "metadata": {}, |
463 | 491 | "source": [ |
464 | | - "### 2.2 Manipulate the mask display\n", |
| 492 | + "### 2.2. Manipulate the mask display\n", |
465 | 493 | "\n", |
466 | 494 | "Each image returned by the butler contains more than just the image pixel values. \n", |
467 | 495 | "One other component is the mask associated with the image. \n", |
|
707 | 735 | "> Figure 8: Similar to the previous figure of `visit_image`, but with the mask transparency reduced to 10% (mostly opaque), and the color representing 'DETECTED' pixels changed from blue to green." |
708 | 736 | ] |
709 | 737 | }, |
710 | | - { |
711 | | - "cell_type": "markdown", |
712 | | - "id": "ac2f7284-4a5c-4550-ab67-5b564629b5e2", |
713 | | - "metadata": {}, |
714 | | - "source": [ |
715 | | - "Read the API documentation about the above functions using the Jupyter notebook `help()` function." |
716 | | - ] |
717 | | - }, |
718 | | - { |
719 | | - "cell_type": "code", |
720 | | - "execution_count": null, |
721 | | - "id": "80560317-1473-41c3-8534-da8cdacceecf", |
722 | | - "metadata": {}, |
723 | | - "outputs": [], |
724 | | - "source": [ |
725 | | - "help(display.scale)" |
726 | | - ] |
727 | | - }, |
728 | | - { |
729 | | - "cell_type": "code", |
730 | | - "execution_count": null, |
731 | | - "id": "0861e1d6-e5ca-4a5c-b587-c476a9db41f2", |
732 | | - "metadata": {}, |
733 | | - "outputs": [], |
734 | | - "source": [ |
735 | | - "help(display.image)" |
736 | | - ] |
737 | | - }, |
738 | 738 | { |
739 | 739 | "cell_type": "markdown", |
740 | 740 | "id": "6a31c94a-51cb-4452-bdd1-9a9a237c032b", |
741 | 741 | "metadata": {}, |
742 | 742 | "source": [ |
743 | | - "### 2.3 Plot markers\n", |
| 743 | + "### 2.3. Plot markers\n", |
744 | 744 | "\n", |
745 | 745 | "In general the Table Access Protocol(TAP)service is the recommended access mechanism for catalog data.\n", |
746 | 746 | "\n", |
|
957 | 957 | "id": "7f3ae3f7-388b-4827-96ae-d4fe822a9a1e", |
958 | 958 | "metadata": {}, |
959 | 959 | "source": [ |
960 | | - "## 3. Display an image with `matplotlib` `imshow`\n" |
| 960 | + "## 3. Display an image with `imshow`\n" |
961 | 961 | ] |
962 | 962 | }, |
963 | 963 | { |
|
973 | 973 | "id": "e5ec48bf-eb0a-42f4-9dd7-e5024cc93e9f", |
974 | 974 | "metadata": {}, |
975 | 975 | "source": [ |
976 | | - "### 3.1 Display the `deep_coadd`\n" |
| 976 | + "### 3.1. Display the `deep_coadd`\n" |
977 | 977 | ] |
978 | 978 | }, |
979 | 979 | { |
|
1057 | 1057 | "id": "b2fdd04d-fe39-4e12-8477-5d2ef1112dac", |
1058 | 1058 | "metadata": {}, |
1059 | 1059 | "source": [ |
1060 | | - "### 3.2 Display the `visit_image`" |
| 1060 | + "### 3.2. Display the `visit_image`" |
1061 | 1061 | ] |
1062 | 1062 | }, |
1063 | 1063 | { |
|
1182 | 1182 | "id": "894b8da3-ad2a-49bd-868c-ef098d491171", |
1183 | 1183 | "metadata": {}, |
1184 | 1184 | "source": [ |
1185 | | - "### 3.3 Plot markers" |
| 1185 | + "### 3.3. Plot markers" |
1186 | 1186 | ] |
1187 | 1187 | }, |
1188 | 1188 | { |
|
0 commit comments