Skip to content

Commit

Permalink
Center the cartopy text in the logo (#2460)
Browse files Browse the repository at this point in the history
* change logo coords
  • Loading branch information
philippemiron authored Oct 24, 2024
1 parent 6b5e619 commit 1a36e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified docs/source/_static/cartopy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion examples/miscellanea/logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ def main():

# generate a matplotlib path representing the word "cartopy"
fp = FontProperties(family='DejaVu Sans', weight='bold')
logo_path = matplotlib.textpath.TextPath((-175, -35), 'cartopy',
logo_path = matplotlib.textpath.TextPath((-171.01406, -39.33125), 'cartopy',
size=80, prop=fp)

# scale the letters up to sensible longitude and latitude sizes
transform = matplotlib.transforms.Affine2D().scale(1, 2).translate(0, 35)

Expand Down

0 comments on commit 1a36e4e

Please sign in to comment.