File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/tutorials/advanced Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4343# color-coding based on *another* grid we have to pass a second grid to the
4444# ``drapegrid`` parameter; here we use a grid of the crustal age. In this case the
4545# 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
4747# the ``perspective`` parameter.
4848
4949fig = pygmt .Figure ()
8383# topographic map of northwest Europe. This example is modified from
8484# :gmt-docs:`GMT example 32 </gallery/ex32.html>`.
8585# 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.
8787
8888# Define the study area in degrees East or North, with an extend of 6 degrees for
8989# the longitude and 4 degrees for the latitude
104104 drapegrid = xr .DataArray (data , dims = ("band" , "y" , "x" ))
105105
106106# %%
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
108108# grid to the ``grid`` parameter to create the topographic surface. But now we pass the
109109# PNG image which was loaded into an :class:`xarray.DataArray` to the ``drapgrid``
110110# parameter.
You can’t perform that action at this time.
0 commit comments