Skip to content

Commit

Permalink
Fix eclipse blog ouput (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes authored Apr 8, 2024
1 parent 71992e7 commit e4de6e5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions posts/2024/2024-04-03-eclipse.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"raw_mimetype": "text/restructuredtext"
},
"source": [
".. post:: 5 April 2024\n",
".. post:: 3 April 2024\n",
" :author: Stuart Mumford\n",
" :tags: eclipse, outreach, tutorials\n",
" :category: Tutorial\n",
Expand Down Expand Up @@ -42,7 +42,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "b77eac75-539b-42db-91d7-302978bf764c",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -448,7 +448,7 @@
"metadata": {},
"outputs": [],
"source": [
"eclipse_map"
"eclipse_map.plot()"
]
},
{
Expand Down Expand Up @@ -491,7 +491,7 @@
"metadata": {},
"source": [
"We can then plot the expected location of Regulus on our eclipse image.\n",
"We set the scaling such that it make Regulus more visible.\n",
"We set the scaling such that it make Regulus more visible and zoom in on the relevant part of the field of view.\n",
"You can see that the expected location and the actual location are quite different."
]
},
Expand All @@ -504,12 +504,14 @@
"source": [
"fig = plt.figure(figsize=(9,9))\n",
"ax = plt.subplot(projection=eclipse_map)\n",
"eclipse_map.plot(axes=ax, vmax=20)\n",
"eclipse_map.plot(axes=ax, clip_interval=(0,90)*u.percent)\n",
"ax.plot_coord(regulus, 'o', markeredgewidth=0.5, markeredgecolor='w',\n",
" markerfacecolor='None', markersize=10, label='Regulus')\n",
"eclipse_map.draw_grid(axes=ax)\n",
"eclipse_map.draw_limb(axes=ax)\n",
"plt.legend()\n",
"plt.xlim(100,500)\n",
"plt.ylim(0,500)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -685,12 +687,14 @@
"source": [
"fig = plt.figure(figsize=(9,9))\n",
"ax = plt.subplot(projection=eclipse_map)\n",
"eclipse_map.plot(axes=ax, vmax=20)\n",
"eclipse_map.plot(axes=ax, clip_interval=(0,90)*u.percent)\n",
"ax.plot_coord(regulus, 'o', markeredgewidth=0.5, markeredgecolor='w',\n",
" markerfacecolor='None', markersize=10, label='Regulus')\n",
"eclipse_map.draw_grid(axes=ax)\n",
"eclipse_map.draw_limb(axes=ax)\n",
"plt.legend()\n",
"plt.xlim(100,500)\n",
"plt.ylim(0,500)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -800,7 +804,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e4de6e5

Please sign in to comment.