diff --git a/examples/2_Base_Commands.ipynb b/examples/2_Base_Commands.ipynb index 9b174384..855f6e25 100644 --- a/examples/2_Base_Commands.ipynb +++ b/examples/2_Base_Commands.ipynb @@ -71,6 +71,13 @@ "aladin.target = \"sgr a*\"" ] }, + { + "metadata": {}, + "cell_type": "code", + "outputs": [], + "execution_count": null, + "source": "aladin.target" + }, { "cell_type": "code", "execution_count": null, @@ -122,6 +129,32 @@ "source": [ "aladin.coo_frame" ] + }, + { + "metadata": {}, + "cell_type": "markdown", + "source": "Some commands can be used with astropy objects" + }, + { + "metadata": {}, + "cell_type": "code", + "outputs": [], + "execution_count": null, + "source": "from astropy.coordinates import Angle, SkyCoord" + }, + { + "metadata": {}, + "cell_type": "code", + "outputs": [], + "execution_count": null, + "source": "aladin.target = SkyCoord(\"12h00m00s\", \"-30d00m00s\", frame=\"icrs\")" + }, + { + "metadata": {}, + "cell_type": "code", + "outputs": [], + "execution_count": null, + "source": "aladin.fov = Angle(5, \"deg\")" } ], "metadata": { diff --git a/examples/3_Functions.ipynb b/examples/3_Functions.ipynb index 7864685c..2f25433a 100644 --- a/examples/3_Functions.ipynb +++ b/examples/3_Functions.ipynb @@ -53,7 +53,7 @@ " \"http://vizier.u-strasbg.fr/viz-bin/votable?-source=HIP2&-c=LMC&-out.add=_RAJ,_\"\n", " \"DEJ&-oc.form=dm&-out.meta=DhuL&-out.max=9999&-c.rm=180\"\n", ")\n", - "options = {\"sourceSize\": 12, \"color\": \"#f08080\", \"onClick\": \"showTable\"}\n", + "options = {\"source_size\": 12, \"color\": \"#f08080\", \"on_click\": \"showTable\"}\n", "aladin.add_catalog_from_URL(url, options)" ] }, diff --git a/examples/4_Importing_Tables.ipynb b/examples/4_Importing_Tables.ipynb index 1621bcab..cd5df9a5 100644 --- a/examples/4_Importing_Tables.ipynb +++ b/examples/4_Importing_Tables.ipynb @@ -58,8 +58,8 @@ "metadata": {}, "outputs": [], "source": [ - "aladin.add_table(table, shape=\"rhomb\", color=\"lightskyblue\", sourceSize=20)\n", - "# This line also works with snake_case instead of camelCase: source_size=20" + "aladin.add_table(table, shape=\"rhomb\", color=\"lightskyblue\", source_size=20)\n", + "# This line also works with camelCase instead of snake_case: sourceSize=20" ] }, { diff --git a/examples/5_Display_a_MOC.ipynb b/examples/5_Display_a_MOC.ipynb index 51ae9e8f..61058dcc 100644 --- a/examples/5_Display_a_MOC.ipynb +++ b/examples/5_Display_a_MOC.ipynb @@ -284,7 +284,9 @@ " external_radius=20 * u.deg,\n", " max_depth=16,\n", ")\n", - "aladin.add_moc(moc, color=\"teal\", edge=True, lineWidth=3, fillColor=\"teal\", opacity=0.5)" + "aladin.add_moc(\n", + " moc, color=\"teal\", edge=True, line_width=3, fill_color=\"teal\", opacity=0.5\n", + ")" ] } ],