Skip to content

Commit 4d0c7ec

Browse files
committed
address feedback
1 parent bc16f24 commit 4d0c7ec

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

‎DP2/300_Science_demos/312_Interactive_plots/312_4_Enhancing_jason-based_visualizations.ipynb‎

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"Data Release: [Data Preview 2](https://dp2.lsst.io/)\\\n",
2525
"Container Size: Large\\\n",
2626
"LSST Science Pipelines version: r30.0.11\\\n",
27-
"Last verified to run: 2026-10-14\\\n",
27+
"Last verified to run: 2026-10-20\\\n",
2828
"Repository: [github.com/lsst/tutorial-notebooks](https://github.com/lsst/tutorial-notebooks)\\\n",
2929
"DOI: [10.11578/rubin/dc.20250909.20](https://doi.org/10.11578/rubin/dc.20250909.20)"
3030
]
@@ -92,7 +92,7 @@
9292
"source": [
9393
"### 1.2. Define parameters and functions\n",
9494
"\n",
95-
"Define the JSON file path."
95+
"Define the JSON file path. The file contains information about the resulting color-magnitude diagram of point-like sources in the NGC 6822 field, centered at (RA, Dec) = (296.24°, −14.8°), with $g$- and $i$-band PSF flux signal-to-noise ratios $>$ 5."
9696
]
9797
},
9898
{
@@ -316,6 +316,19 @@
316316
" bgcolor=\"white\",\n",
317317
")\n",
318318
"\n",
319+
"fig.add_annotation(\n",
320+
" x=2.5,\n",
321+
" y=21.5,\n",
322+
" text=\"MW\",\n",
323+
" showarrow=True,\n",
324+
" arrowhead=2,\n",
325+
" arrowcolor=\"red\",\n",
326+
" ax=0,\n",
327+
" ay=-40,\n",
328+
" font=dict(size=14, color=\"red\"),\n",
329+
" bgcolor=\"white\",\n",
330+
")\n",
331+
"\n",
319332
"fig.show()"
320333
]
321334
},
@@ -324,7 +337,7 @@
324337
"id": "de7a33bf-50ae-4ac4-b93b-25a30210e23d",
325338
"metadata": {},
326339
"source": [
327-
"> **Figure 4:** Final annotated CMD identifying the distinct stellar populations within the field of view. Red arrows and labels delineate the NGC 6822 galaxy, characterized by its upper RGB stars and MS stars; and the MW foreground, visible as a prominent vertical structure at $g−i \\approx$ 0.9. These annotations are anchored to data coordinates, providing a scientific reference for the various stellar populations present in the dataset."
340+
"> **Figure 4:** Final annotated CMD identifying the distinct stellar populations within the field of view. Red arrows and labels delineate the NGC 6822 galaxy, characterized by its upper RGB stars and MS stars; the MW's main-sequence turnoff stars, visible as a prominent vertical structure at $g−i \\approx$ 0.9; and the MW's M-dwarf stars, visible as another vertical structure at $g−i \\approx$ 2.5. These annotations are anchored to data coordinates, providing a scientific reference for the various stellar populations present in the dataset."
328341
]
329342
},
330343
{
@@ -344,7 +357,8 @@
344357
},
345358
"outputs": [],
346359
"source": [
347-
"# fig.layout.annotations = []"
360+
"# fig.layout.annotations = []\n",
361+
"# fig.show()"
348362
]
349363
},
350364
{
@@ -376,8 +390,17 @@
376390
"# os.makedirs(tmp_dir)\n",
377391
"# print(f\"Created directory: {tmp_dir}\")\n",
378392
"\n",
379-
"# pio.write_json(fig, file_path)"
393+
"# pio.write_json(fig, file_path)\n",
394+
"# print(f\"Saved to: {file_path}\")"
380395
]
396+
},
397+
{
398+
"cell_type": "code",
399+
"execution_count": null,
400+
"id": "b4459243-6122-4e58-b579-b83ff4014372",
401+
"metadata": {},
402+
"outputs": [],
403+
"source": []
381404
}
382405
],
383406
"metadata": {

0 commit comments

Comments
 (0)