Mahmudm commited on
Commit
291f0ae
·
verified ·
1 Parent(s): 82a2c4e

Update ash_animator/basemaps.py

Browse files
Files changed (1) hide show
  1. ash_animator/basemaps.py +8 -5
ash_animator/basemaps.py CHANGED
@@ -2,11 +2,7 @@ import os
2
  import tempfile
3
  import hashlib
4
  from PIL import Image
5
- import matplotlib.pyplot as plt
6
- import contextily as ctx
7
- from mpl_toolkits.basemap import Basemap
8
- import cartopy.crs as ccrs
9
- import cartopy.feature as cfeature
10
 
11
  def get_cache_dir(app_name):
12
  """
@@ -36,6 +32,13 @@ if CARTOPY_CACHE_DIR:
36
  os.environ["CARTOPY_USER_BACKGROUNDS"] = CARTOPY_CACHE_DIR
37
  os.environ["CARTOPY_CACHE_DIR"] = CARTOPY_CACHE_DIR
38
 
 
 
 
 
 
 
 
39
  def draw_etopo_basemap(ax, mode="basemap", zoom=11):
40
  """
41
  Draws a background basemap image on a Cartopy GeoAxes.
 
2
  import tempfile
3
  import hashlib
4
  from PIL import Image
5
+
 
 
 
 
6
 
7
  def get_cache_dir(app_name):
8
  """
 
32
  os.environ["CARTOPY_USER_BACKGROUNDS"] = CARTOPY_CACHE_DIR
33
  os.environ["CARTOPY_CACHE_DIR"] = CARTOPY_CACHE_DIR
34
 
35
+
36
+ import matplotlib.pyplot as plt
37
+ import contextily as ctx
38
+ from mpl_toolkits.basemap import Basemap
39
+ import cartopy.crs as ccrs
40
+ import cartopy.feature as cfeature
41
+
42
  def draw_etopo_basemap(ax, mode="basemap", zoom=11):
43
  """
44
  Draws a background basemap image on a Cartopy GeoAxes.