Skip to content

Remove title/label-whitespaces-trick from tests #2024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygmt/tests/test_basemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_basemap_power_axis():
fig.basemap(
region=[0, 100, 0, 5000],
projection="x1p0.5/-0.001",
frame=['x1p+l"Crustal age"', "y500+lDepth"],
frame=["x1p+lCrustal age", "y500+lDepth"],
)
return fig

Expand Down
6 changes: 3 additions & 3 deletions pygmt/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ def test_config():
# Change global settings of current figure
config(FONT_ANNOT_PRIMARY="blue")
fig.basemap(
region=[0, 10, 0, 10], projection="X5c/5c", frame=["af", '+t"Blue Annotation"']
region=[0, 10, 0, 10], projection="X5c/5c", frame=["af", "+tBlue Annotation"]
)

with config(FONT_LABEL="red", FONT_ANNOT_PRIMARY="red"):
fig.basemap(
region=[0, 10, 0, 10],
projection="X5c/5c",
frame=['xaf+l"red label"', "yaf", '+t"red annotation"'],
frame=["xaf+lred label", "yaf", "+tred annotation"],
xshift="7c",
)

fig.basemap(
region=[0, 10, 0, 10],
projection="X5c/5c",
frame=["af", '+t"Blue Annotation"'],
frame=["af", "+tBlue Annotation"],
xshift="7c",
)
# Revert to default settings in current figure
Expand Down