From c7098ea8b1c52cc7e1445aff7fbc4bfdde16d485 Mon Sep 17 00:00:00 2001 From: James Gillanders Date: Mon, 2 Dec 2024 15:08:43 +0000 Subject: [PATCH] Fixing label issue in convergence plots (see Issue #2446) (#2894) Fixing label issue in convergence plots See issue #2446 --- tardis/visualization/tools/convergence_plot.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tardis/visualization/tools/convergence_plot.py b/tardis/visualization/tools/convergence_plot.py index b4a9438840e..474111991e0 100644 --- a/tardis/visualization/tools/convergence_plot.py +++ b/tardis/visualization/tools/convergence_plot.py @@ -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( + '' +)) + + def transition_colors(length, name="jet"): """ Create colorscale for convergence plots, returns a list of colors.