diff --git a/tardis/visualization/tools/convergence_plot.py b/tardis/visualization/tools/convergence_plot.py index 8c6d1617b94..baac3ea0722 100644 --- a/tardis/visualization/tools/convergence_plot.py +++ b/tardis/visualization/tools/convergence_plot.py @@ -371,9 +371,9 @@ def update_t_inner_luminosities_plot(self): self.t_inner_luminosities_plot.data[0].y = self.value_data[ "t_inner" ] - self.t_inner_luminosities_plot.data[0].hovertemplate = ( - "%{y:.3f} at X = %{x:,.0f}Inner Boundary Temperature" # trace name in extra tag to avoid new lines in hoverdata - ) + self.t_inner_luminosities_plot.data[ + 0 + ].hovertemplate = "%{y:.3f} at X = %{x:,.0f}Inner Boundary Temperature" # trace name in extra tag to avoid new lines in hoverdata # the next three for emitted, absorbed and requested luminosities for index, luminosity in zip(range(1, 4), self.luminosities): @@ -395,9 +395,9 @@ def update_t_inner_luminosities_plot(self): self.t_inner_luminosities_plot.data[4].x = x self.t_inner_luminosities_plot.data[4].y = y - self.t_inner_luminosities_plot.data[4].hovertemplate = ( - "%{y:.2f}% at X = %{x:,.0f}" - ) + self.t_inner_luminosities_plot.data[ + 4 + ].hovertemplate = "%{y:.2f}% at X = %{x:,.0f}" def update(self, export_convergence_plots=False, last=False): """