Skip to content

Commit

Permalink
Numpy standard import form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Yeo committed Sep 2, 2020
1 parent b6735f2 commit 923a375
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/iris/src/sphinxext/generate_logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from cartopy import crs as ccrs
from cartopy.feature import LAND
from matplotlib import pyplot as plt
from numpy import linspace
import numpy as np

print("LOGO GENERATION START ...")

Expand Down Expand Up @@ -107,14 +107,14 @@
central_longitude = -30
central_latitude = 22.9
rotation_frames = 180
rotation_longitudes = linspace(start=central_longitude + 360,
stop=central_longitude,
num=rotation_frames,
endpoint=False)
rotation_longitudes = np.linspace(start=central_longitude + 360,
stop=central_longitude,
num=rotation_frames,
endpoint=False)
# Normalise to -180..+180
rotation_longitudes = (rotation_longitudes + 360.0 + 180.0) % 360.0 - 180.0

for lon in rotation_longitudes[:2]:
for lon in rotation_longitudes:
# Use Matplotlib and Cartopy to generate land-shaped SVG clips for each longitude.

projection_rotated = ccrs.Orthographic(central_longitude=lon,
Expand Down

0 comments on commit 923a375

Please sign in to comment.