From 4284566c5837b695c1fda3abcf8496a62dbed82a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Mon, 1 Nov 2021 10:29:32 +0100 Subject: [PATCH 1/2] BUG: fix LaTeX typesetting for fractional ylabels in ProfilePlot --- yt/visualization/plot_container.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/yt/visualization/plot_container.py b/yt/visualization/plot_container.py index 509ec595fa5..56e325a82e1 100644 --- a/yt/visualization/plot_container.py +++ b/yt/visualization/plot_container.py @@ -781,7 +781,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): From 3d62648c3199ec0c38c69625a8aa9c03e68aeb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Mon, 1 Nov 2021 18:56:56 +0100 Subject: [PATCH 2/2] bump answer store --- answer-store | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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