Skip to content

Commit

Permalink
Fix the weird codes in subplot autolabel
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Mar 26, 2021
1 parent 59a2b28 commit a9d167d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygmt/src/subplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def subplot(self, nrows=1, ncols=1, **kwargs):
"""
kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access
# allow for spaces in string with needing double quotes
kwargs["A"] = f'"{kwargs.get("A")}"' if kwargs.get("A") is not None else None
if isinstance(kwargs.get("A"), str):
kwargs["A"] = f'"{kwargs.get("A")}"'
kwargs["T"] = f'"{kwargs.get("T")}"' if kwargs.get("T") else None

if nrows < 1 or ncols < 1:
Expand Down

0 comments on commit a9d167d

Please sign in to comment.