diff --git a/answer-store b/answer-store index 64303a06913..073b4d3e4f3 160000 --- a/answer-store +++ b/answer-store @@ -1 +1 @@ -Subproject commit 64303a0691388c8c1ad8142144a40de6fc4881b7 +Subproject commit 073b4d3e4f3894f64ddd97c9e21214059e73f700 diff --git a/yt/visualization/plot_container.py b/yt/visualization/plot_container.py index 96591a5c72b..732a8944efa 100644 --- a/yt/visualization/plot_container.py +++ b/yt/visualization/plot_container.py @@ -796,7 +796,10 @@ def _get_axes_unit_labels(self, unit_x, unit_y): symbol_wo_prefix = un[1:] if symbol_wo_prefix in self.ds.unit_registry.prefixable_units: un = un.replace(pp, "{" + latex_prefixes[pp] + "}", 1) - axes_unit_labels[i] = r"\ \ (" + un + ")" + if r"\frac" in un: + axes_unit_labels[i] = r"\ \ \left(" + un + r"\right)" + else: + axes_unit_labels[i] = r"\ \ (" + un + r")" return axes_unit_labels def hide_colorbar(self, field=None):