|
5 | 5 | The :meth:`pygmt.Figure.grdview()` method can plot 3-D surfaces with |
6 | 6 | ``surftype="surface"``. Here, we supply the data as an :class:`xarray.DataArray` with |
7 | 7 | the coordinate vectors ``x`` and ``y`` defined. Note that the ``perspective`` parameter |
8 | | -here controls the azimuth and elevation angle of the view. We provide a list of two |
9 | | -arguments to ``frame`` - the first argument specifies the :math:`x`- and :math:`y`-axes |
10 | | -frame attributes and the second argument, prepended with ``"z"``, specifies the |
11 | | -:math:`z`-axis frame attributes. Specifying the same scale for the ``projection`` and |
12 | | -``zscale`` parameters ensures equal axis scaling. The ``shading`` parameter specifies |
13 | | -illumination; here we choose an azimuth of 45° with ``shading="+a45"``. |
| 8 | +here controls the azimuth and elevation angle of the view. Specifying the same scale |
| 9 | +for the ``projection`` and ``zscale`` parameters ensures equal axis scaling. The |
| 10 | +``shading`` parameter specifies illumination; here we choose an azimuth of 45° with |
| 11 | +``shading="+a45"``. |
14 | 12 | """ |
15 | 13 |
|
16 | 14 | # %% |
@@ -48,7 +46,7 @@ def ackley(x, y): |
48 | 46 | data, |
49 | 47 | # Set annotations and gridlines in steps of five, and tick marks in steps of one |
50 | 48 | frame=Frame( |
51 | | - axis=Axis(annot=5, tick=1, grid=5), |
| 49 | + axis=Axis(annot=5, tick=1, grid=5), # x and y axes |
52 | 50 | zaxis=Axis(annot=5, tick=1, grid=5), |
53 | 51 | ), |
54 | 52 | projection=f"x{SCALE}c", |
|
0 commit comments