Skip to content

Commit

Permalink
Fix plotgmt title, cb_label, and cb_ylabel strings for pygmt 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkWieczorek committed Sep 26, 2024
1 parent afa48ff commit a722c97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyshtools/shclasses/shgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a722c97

Please sign in to comment.