Skip to content

Commit 1a36e4e

Browse files
Center the cartopy text in the logo (#2460)
* change logo coords
1 parent 6b5e619 commit 1a36e4e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/source/_static/cartopy.png

-1.98 KB
Loading

examples/miscellanea/logo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ def main():
2323

2424
# generate a matplotlib path representing the word "cartopy"
2525
fp = FontProperties(family='DejaVu Sans', weight='bold')
26-
logo_path = matplotlib.textpath.TextPath((-175, -35), 'cartopy',
26+
logo_path = matplotlib.textpath.TextPath((-171.01406, -39.33125), 'cartopy',
2727
size=80, prop=fp)
28+
2829
# scale the letters up to sensible longitude and latitude sizes
2930
transform = matplotlib.transforms.Affine2D().scale(1, 2).translate(0, 35)
3031

0 commit comments

Comments
 (0)