File tree 1 file changed +3
-3
lines changed
examples/tutorials/advanced
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 43
43
# color-coding based on *another* grid we have to pass a second grid to the
44
44
# ``drapegrid`` parameter; here we use a grid of the crustal age. In this case the
45
45
# colormap specified via the ``cmap`` parameter applies to the grid passed to
46
- # ``drapegrid``, not to ``grid``. The azimuth and elevation a the 3-D plot are set via
46
+ # ``drapegrid``, not to ``grid``. The azimuth and elevation of the 3-D plot are set via
47
47
# the ``perspective`` parameter.
48
48
49
49
fig = pygmt .Figure ()
83
83
# topographic map of northwest Europe. This example is modified from
84
84
# :gmt-docs:`GMT example 32 </gallery/ex32.html>`.
85
85
# We have to consider the dimension of the image we want to drap. The image we will
86
- # download in this example has 1000 x 667 pixels, i.e. a aspect ratio of 3 x 2.
86
+ # download in this example has 1000 x 667 pixels, i.e. an aspect ratio of 3 x 2.
87
87
88
88
# Define the study area in degrees East or North, with an extend of 6 degrees for
89
89
# the longitude and 4 degrees for the latitude
104
104
drapegrid = xr .DataArray (data , dims = ("band" , "y" , "x" ))
105
105
106
106
# %%
107
- # Again we create a 3-D plot with :meth:`pygmt.Figure.grdview` and passe an Earth relief
107
+ # Again we create a 3-D plot with :meth:`pygmt.Figure.grdview` and pass an Earth relief
108
108
# grid to the ``grid`` parameter to create the topographic surface. But now we pass the
109
109
# PNG image which was loaded into an :class:`xarray.DataArray` to the ``drapgrid``
110
110
# parameter.
You can’t perform that action at this time.
0 commit comments