File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 34
34
plt .title ("Blue Marble image warped from 'cyl' to 'mbtfpq' projection" ,fontsize = 12 )
35
35
print ('warp to McBryde-Thomas Flat-Polar Quartic map ...' )
36
36
37
+ # create new figure
38
+ fig = plt .figure ()
39
+ # define projection centered on North America.
40
+ m = Basemap (projection = 'hammer' ,lon_0 = - 100 ,resolution = 'l' )
41
+ m .bluemarble (scale = 0.5 )
42
+ # draw coastlines.
43
+ m .drawcoastlines (linewidth = 0.5 ,color = '0.5' )
44
+ # draw lat/lon grid lines every 30 degrees.
45
+ m .drawmeridians (np .arange (0 ,360 ,60 ),color = '0.5' )
46
+ m .drawparallels (np .arange (- 90 ,90 ,30 ),color = '0.5' )
47
+ plt .title ("Blue Marble image warped from 'cyl' to 'hammer' projection" ,fontsize = 12 )
48
+ print ('warp to Hammer map ...' )
49
+
37
50
# create new figure
38
51
fig = plt .figure ()
39
52
# define cylindrical equidistant projection.
You can’t perform that action at this time.
0 commit comments