Skip to content

Commit beefd42

Browse files
committed
updated files
1 parent 92ff42a commit beefd42

3 files changed

Lines changed: 43 additions & 25 deletions

File tree

DP1/300_Science_Demos/311_Interactive_data_visualization/311_1_Single_interactive_plots.ipynb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
"\n",
7171
"> **Notice:** If the notebook or any interactive features seem to stall, first try going a few cells back and rerunning them in order (the order in which cells are run is important for this notebook's functionality). If that does not work, try restarting the kernel. If issues persist, try logging out and restarting the Notebook aspect using a \"large\" instance of the JupyterLab environment.\n",
7272
"\n",
73-
"> **Warning: It is not recommended to \"Restart Kernel and Run All Cells\" in this notebook, or to execute multiple cells very quickly.** Some of the examples require interaction (e.g., for the user to select points on a graph) in order to run correctly, and going too fast can cause some plots to not display properly."
73+
"> **Warning: It is not recommended to \"Restart Kernel and Run All Cells\" in this notebook, or to execute multiple cells very quickly.** Some of the examples require interaction (e.g., for the user to select points on a graph) in order to run correctly, and going too fast can cause some plots to not display properly.\n",
74+
"\n",
75+
"**Related tutorials:** This notebook is part one in a series of three tutorials on interactive catalog data visualizations."
7476
]
7577
},
7678
{
@@ -679,7 +681,7 @@
679681
"metadata": {},
680682
"source": [
681683
"Now bin the data in RA using the robust \n",
682-
"[Freedman Diaconis Estimator](https://numpy.org/doc/stable/reference/generated/numpy.histogram_bin_edges.html#numpy.histogram_bin_edges),\n",
684+
"[Freedman Diaconis Estimator](https://numpy.org/doc/stable/reference/generated/numpy.histogram_bin_edges.html#numpy.histogram_bin_edges) in `numpy.histogram`,\n",
683685
"plot the resulting distribution using the HoloViews \n",
684686
"[Histogram Element](http://holoviews.org/reference/elements/bokeh/Histogram.html),\n",
685687
"and add in some basic plot options. \n",
@@ -723,12 +725,14 @@
723725
]
724726
},
725727
{
726-
"cell_type": "code",
727-
"execution_count": null,
728+
"cell_type": "markdown",
728729
"id": "fa749c97-2e07-4046-a861-428e7d921897",
729730
"metadata": {},
730-
"outputs": [],
731-
"source": []
731+
"source": [
732+
"## 4. Conclusion\n",
733+
"\n",
734+
"This notebook demonstrates single interactive plots for visualizing catalog data. Additional notebooks in this series will present paired plots and working with larger datasets."
735+
]
732736
}
733737
],
734738
"metadata": {

DP1/300_Science_Demos/311_Interactive_data_visualization/311_2_Paired_interactive_plots.ipynb

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
"\n",
7171
"> **Notice:** If the notebook or any interactive features seem to stall, first try going a few cells back and rerunning them in order (the order in which cells are run is important for this notebook's functionality). If that does not work, try restarting the kernel. If issues persist, try logging out and restarting the Notebook aspect using a \"large\" instance of the JupyterLab environment.\n",
7272
"\n",
73-
"> **Warning: It is not recommended to \"Restart Kernel and Run All Cells\" in this notebook, or to execute multiple cells very quickly.** Some of the examples require interaction (e.g., for the user to select points on a graph) in order to run correctly, and going too fast can cause some plots to not display properly."
73+
"> **Warning: It is not recommended to \"Restart Kernel and Run All Cells\" in this notebook, or to execute multiple cells very quickly.** Some of the examples require interaction (e.g., for the user to select points on a graph) in order to run correctly, and going too fast can cause some plots to not display properly.\n",
74+
"\n",
75+
"**Related tutorials:** This notebook is part two in a series of three tutorials on interactive catalog data visualizations."
7476
]
7577
},
7678
{
@@ -632,7 +634,7 @@
632634
"id": "93111c58-ee08-41a4-82e3-56f2604210b2",
633635
"metadata": {},
634636
"source": [
635-
"> Figure 1: Two side-by-side plots, Fig 1 from above on the left, and Fig 2 from above on the right, with the interactive toolbar at upper right.\n",
637+
"> Figure 1: Two side-by-side plots showing a scatter plot on the left and a histogram on the right, with the interactive toolbar at upper right.\n",
636638
"\n",
637639
"Note that these two plots above are not linked, they are two independent plots laid out next to each other.\n",
638640
"\n",
@@ -831,7 +833,7 @@
831833
"source": [
832834
"> Figure 3: The r-i color versus the g-r color (purple triangles), with histograms (blue bar charts) of the color distributions above and to the right. The interactive tool bar is at upper right.\n",
833835
"\n",
834-
"Try zooming in on regions of the plot. The histograms are automatically recomputed. "
836+
"Try zooming in on regions of the plot. The histograms are automatically recomputed. Note the \"box select\" tool at upper right does not work here because the histogram is not linked to selection by default and the scatter is warpped by `adjoin=True` which breaks the selection. "
835837
]
836838
},
837839
{
@@ -1305,12 +1307,14 @@
13051307
]
13061308
},
13071309
{
1308-
"cell_type": "code",
1309-
"execution_count": null,
1310-
"id": "490f7dd1-0df9-40f6-9d2a-e6e9b3cb54af",
1310+
"cell_type": "markdown",
1311+
"id": "00c6d6ad-19fc-450a-bd29-e3280200c7c0",
13111312
"metadata": {},
1312-
"outputs": [],
1313-
"source": []
1313+
"source": [
1314+
"## 5. Conclusion\n",
1315+
"\n",
1316+
"This notebook demonstrates paired interactive plots including linked plots for visualizing catalog data. Additional notebooks in this series will present single plots and working with larger datasets."
1317+
]
13141318
}
13151319
],
13161320
"metadata": {

DP1/300_Science_Demos/311_Interactive_data_visualization/311_3_Large_datasets.ipynb

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
"\n",
7171
"> **Notice:** If the notebook or any interactive features seem to stall, first try going a few cells back and rerunning them in order (the order in which cells are run is imporant for this notebook's functionality). If that does not work, try restarting the kernel. If issues persist, try logging out and restarting the Notebook aspect using a \"large\" instance of the JupyterLab environment.\n",
7272
"\n",
73-
"> **Warning: It is not recommended to \"Restart Kernel and Run All Cells\" in this notebook, or to execute multiple cells very quickly.** Some of the examples require interaction (e.g., for the user to select points on a graph) in order to run correctly, and going too fast can cause some plots to not display properly."
73+
"> **Warning: It is not recommended to \"Restart Kernel and Run All Cells\" in this notebook, or to execute multiple cells very quickly.** Some of the examples require interaction (e.g., for the user to select points on a graph) in order to run correctly, and going too fast can cause some plots to not display properly.\n",
74+
"\n",
75+
"**Related tutorials:** This notebook is part three in a series of three tutorials on interactive catalog data visualizations."
7476
]
7577
},
7678
{
@@ -545,7 +547,7 @@
545547
"id": "1050afa9-b5a3-4412-b5ee-f16a79c0223a",
546548
"metadata": {},
547549
"source": [
548-
"## 3 Datashader\n",
550+
"## 3. Datashader\n",
549551
"\n",
550552
"The interactive features of Bokeh work well with datasets up to a few tens of thousands of data points.\n",
551553
"To efficiently explore larger datasets it is recommended to use another visualization model that offers better scalability: Datashader.\n",
@@ -971,7 +973,7 @@
971973
"source": [
972974
"Create custom callback functionality to update the linked histogram.\n",
973975
"\n",
974-
"These functions are defined here (and not in Section 1.2) because they are only used in the following cell."
976+
"These functions are defined here (and not in Section 1.2) because they are only used in the following cell. The first function is used for setting the frequency of a magnitude to log scale because of the large number of data points. The second function updates the histogram based on the new selected sky area."
975977
]
976978
},
977979
{
@@ -999,6 +1001,14 @@
9991001
" return hist"
10001002
]
10011003
},
1004+
{
1005+
"cell_type": "markdown",
1006+
"id": "007eb0ed-37d1-482f-8e30-9d2ce91e25ed",
1007+
"metadata": {},
1008+
"source": [
1009+
"Make the histogram for r-band magnitude and plot it together with the 2D density map of celestial coordinates. Compared to the plots above, this plot shows two panels at the same time, and applying the \"Box Select\" to the left panel changes the histogram on the right."
1010+
]
1011+
},
10021012
{
10031013
"cell_type": "code",
10041014
"execution_count": null,
@@ -1025,14 +1035,14 @@
10251035
]
10261036
},
10271037
{
1028-
"cell_type": "code",
1029-
"execution_count": null,
1030-
"id": "f0315ded-65ce-4c83-a4ac-cdae13ca9bfd",
1031-
"metadata": {
1032-
"tags": []
1033-
},
1034-
"outputs": [],
1035-
"source": []
1038+
"cell_type": "markdown",
1039+
"id": "b7902933-0924-4cf4-bdf1-03c5c5e360a4",
1040+
"metadata": {},
1041+
"source": [
1042+
"## 4. Conclusion\n",
1043+
"\n",
1044+
"This notebook demonstrates visualizing large catalog datasets. Additional notebooks in this series will present single plots and paired plots."
1045+
]
10361046
}
10371047
],
10381048
"metadata": {

0 commit comments

Comments
 (0)