We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d233a76 commit 31440f0Copy full SHA for 31440f0
examples/shade.py
@@ -0,0 +1,25 @@
1
+from mpl_toolkits.basemap import Basemap
2
+import numpy as np
3
+import matplotlib.pyplot as plt
4
+from datetime import datetime
5
+
6
7
+# lon_0 is central longitude of projection.
8
+# resolution = 'c' means use crude resolution coastlines.
9
+m = Basemap(projection='robin',lon_0=180,resolution='c')
10
11
+m.drawcoastlines()
12
+m.fillcontinents(color='coral',lake_color='aqua')
13
14
+# draw parallels and meridians.
15
+m.drawparallels(np.arange(-90.,120.,30.))
16
+m.drawmeridians(np.arange(0.,360.,60.))
17
+m.drawmapboundary(fill_color='aqua')
18
19
+date = datetime(2024,10,10,6)
20
21
+m.nightshade(date,alpha=0.2)
22
23
+plt.title("Robinson Projection")
24
+plt.savefig('test.png')
25
0 commit comments