Thanks to visit codestin.com Credit goes to github.com
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 63bbfc0 commit b232cf0Copy full SHA for b232cf0
1 file changed
examples/pylab_examples/shading_example.py
@@ -4,14 +4,14 @@
4
5
# example showing how to make shaded relief plots
6
# like mathematica
7
-# (http://reference.wolfram.com/mathematica/ref/ReliefPlot.html )
+# (http://reference.wolfram.com/mathematica/ref/ReliefPlot.html)
8
# or Generic Mapping Tools
9
# (http://gmt.soest.hawaii.edu/gmt/doc/gmt/html/GMT_Docs/node145.html)
10
11
# test data
12
X,Y=np.mgrid[-5:5:0.05,-5:5:0.05]
13
Z=np.sqrt(X**2+Y**2)+np.sin(X**2+Y**2)
14
-# creat light source object.
+# create light source object.
15
ls = LightSource(azdeg=0,altdeg=65)
16
# shade data, creating an rgb array.
17
rgb = ls.shade(Z,plt.cm.copper)
0 commit comments