From e34737fcc7533289ddfe95307c5dc3aae2f40035 Mon Sep 17 00:00:00 2001 From: James Gillanders Date: Thu, 28 Nov 2024 15:55:38 +0000 Subject: [PATCH] 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.