Skip to content

Commit 0b493a2

Browse files
committed
Adjust the wordmark position for vertical hexagonal logo
1 parent da702ea commit 0b493a2

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _create_logo( # noqa: PLR0915
9393
fontsize = size * 2.0 / pygmtwidth
9494
args_wordmark = {
9595
"x": -size - fontsize * plsb,
96-
"y": -size * 1.375, # Center of the wordmark.
96+
"y": -size * (1.375 if shape == "circle" else 1.5),
9797
"justify": "ML",
9898
"font": f"{fontsize}c,{font}",
9999
"no_clip": True, # Needed because x<xmin.
@@ -266,7 +266,7 @@ def _compass_lines():
266266
halfheight = pheight / 2.0 * fontsize
267267
fig.hlines(y=[-halfheight, halfheight], xmin=size, pen=pen)
268268
fig.vlines(x=[size * 1.25, size * 1.25 + pstroke * fontsize], pen=pen)
269-
elif wordmark == "vertical":
269+
elif wordmark == "vertical" and shape == "circle":
270270
fig.hlines(y=-size * 1.375, pen=pen)
271271

272272
if figname:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
outs:
2-
- md5: 7c63ae282d62472c4420a1dd482fce97
3-
size: 195380
2+
- md5: c917b7e40da71eed0e05a8525ddc2e56
3+
size: 196043
44
hash: md5
55
path: test_pygmtlogo_design_hexagon-vertical.png
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
outs:
2-
- md5: 7b7919375c9dbc354c8ef5f86a33e830
3-
size: 37203
2+
- md5: 56740518206c886f12656a31a953b003
3+
size: 37585
44
hash: md5
55
path: test_pygmtlogo_wordmark_vertical_hexagon.png

0 commit comments

Comments
 (0)