From a722c97c08fd87552fcb37d75872787c4d300ea1 Mon Sep 17 00:00:00 2001 From: Mark Wieczorek Date: Thu, 26 Sep 2024 21:37:31 +0200 Subject: [PATCH] Fix plotgmt title, cb_label, and cb_ylabel strings for pygmt 0.12 --- pyshtools/shclasses/shgrid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyshtools/shclasses/shgrid.py b/pyshtools/shclasses/shgrid.py index 06055fd7..f026eeb7 100644 --- a/pyshtools/shclasses/shgrid.py +++ b/pyshtools/shclasses/shgrid.py @@ -2387,7 +2387,7 @@ def _plot_pygmt(self, fig=None, projection=None, region=None, if minor_tick_interval[1] is not None: framey += 'f' + str(minor_tick_interval[1]) if title is not None: - ticks += '+t"{:s}"'.format(title) + ticks += f'+t{title}' frame = [framex, framey, ticks] position = None @@ -2429,9 +2429,9 @@ def _plot_pygmt(self, fig=None, projection=None, region=None, x_str += 'p' cb_str.extend([x_str]) if cb_label is not None: - cb_str.extend(['x+l"{:s}"'.format(cb_label)]) + cb_str.extend([f'x+l{cb_label}']) if cb_ylabel is not None: - cb_str.extend(['y+l"{:s}"'.format(cb_ylabel)]) + cb_str.extend([f'y+l{cb_ylabel}']) if offset[0] is not None: xshift = str(offset[0]) + unit