Skip to content

Commit

Permalink
Fixing label issue in convergence plots (see Issue #2446) (#2894)
Browse files Browse the repository at this point in the history
Fixing label issue in convergence plots

See issue #2446
  • Loading branch information
jamesgillanders authored Dec 2, 2024
1 parent c1026cd commit c7098ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tardis/visualization/tools/convergence_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
from astropy import units as u


# Added the below as a (temporary) workaround to the latex
# labels on the convergence plots not rendering correctly.
import plotly
from IPython.display import display, HTML

plotly.offline.init_notebook_mode()
display(HTML(
'<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_SVG"></script>'
))


def transition_colors(length, name="jet"):
"""
Create colorscale for convergence plots, returns a list of colors.
Expand Down

0 comments on commit c7098ea

Please sign in to comment.