diff --git a/pygmt/src/pygmtlogo.py b/pygmt/src/pygmtlogo.py index b73c575cfaf..755fd3d92a7 100644 --- a/pygmt/src/pygmtlogo.py +++ b/pygmt/src/pygmtlogo.py @@ -85,10 +85,19 @@ def _create_logo( # noqa: PLR0915 pheight = 0.739 # Height of letter "P" plsb = 0.076 # Left side bearing of letter "P" pstroke = 0.0735 # Stroke thickness of letter "P" + pygmtwidth = 3.262 # Full width of "PyGMT" match wordmark: case "vertical": - args_wordmark = {"x": 0, "y": -4.5, "justify": "CT", "font": f"2.4c,{font}"} + # Ensure the same width for the visual logo and wordmark + fontsize = size * 2.0 / pygmtwidth + args_wordmark = { + "x": -size - fontsize * plsb, + "y": -size * 1.125, + "justify": "TL", + "font": f"{fontsize}c,{font}", + "no_clip": True, # Needed because x