Skip to content

Commit

Permalink
Merge pull request #628 from abhro/patch-1
Browse files Browse the repository at this point in the history
Escape latex escape sequences in color-excess.ipynb
  • Loading branch information
jeffjennings authored Jan 13, 2025
2 parents 70c9c5a + 2326cea commit 825e9fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tutorials/color-excess/color-excess.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@
" ext = model(Rv=R)\n",
" plt.plot(1/wav, ext(wav), label=model.name+' R='+str(R))\n",
" \n",
"plt.xlabel('$\\lambda^{-1}$ ($\\mu$m$^{-1}$)')\n",
"plt.ylabel('A($\\lambda$) / A(V)')\n",
"plt.xlabel(r'$\\lambda^{-1}$ ($\\mu$m$^{-1}$)')\n",
"plt.ylabel(r'A($\\lambda$) / A(V)')\n",
"plt.legend(loc='best')\n",
"plt.title('Some Extinction Laws')\n",
"plt.show()"
Expand Down Expand Up @@ -632,8 +632,8 @@
"# Plot the model extinction curve for comparison \n",
"plt.plot(wav,Av*ext(wav)-Av,'--k')\n",
"plt.ylim([-2,2])\n",
"plt.xlabel('$\\lambda$ (Angstrom)')\n",
"plt.ylabel('E($\\lambda$-V)')\n",
"plt.xlabel(r'$\\lambda$ (Angstrom)')\n",
"plt.ylabel(r'E($\\lambda$-V)')\n",
"plt.title('Reddening of T=10,000K Background Source with Av=2')\n",
"plt.show() "
]
Expand Down

0 comments on commit 825e9fb

Please sign in to comment.