@@ -255,6 +255,8 @@ def grdview(
255255
256256 Examples
257257 --------
258+ Create a 3-D surface plot of the Earth's relief.
259+
258260 >>> import pygmt
259261 >>> from pygmt.params import Axis, Frame
260262 >>> # Load the 30 arc-minutes grid with "gridline" registration in a given region
@@ -263,27 +265,20 @@ def grdview(
263265 ... region=[-92.5, -82.5, -3, 7],
264266 ... registration="gridline",
265267 ... )
266- >>> # Create a new figure instance with pygmt.Figure()
267268 >>> fig = pygmt.Figure()
268- >>> # Create the contour plot
269269 >>> fig.grdview(
270- ... # Pass in the grid downloaded above
271270 ... grid=grid,
272271 ... # Set the perspective to an azimuth of 130° and an elevation of 30°
273- ... perspective=[ 130, 30] ,
272+ ... perspective=( 130, 30) ,
274273 ... # Add a frame to the x- and y-axes
275274 ... # Specify annotations on the south and east borders of the plot
276275 ... frame=Frame(axes="wSnE", xaxis=Axis(annot=True), yaxis=Axis(annot=True)),
277276 ... # Set the projection of the 2-D map to Mercator with a 10 cm width
278277 ... projection="M10c",
279- ... # Set the vertical scale (z-axis) to 2 cm
280- ... zsize="2c",
281- ... # Set "surface plot" to color the surface via a CPT
282- ... surftype="surface",
283- ... # Specify CPT to "geo"
284- ... cmap="gmt/geo",
278+ ... zsize="2c", # Set the vertical scale (z-axis) to 2 cm
279+ ... surftype="surface", # Set "surface plot" to color the surface via a CPT
280+ ... cmap="gmt/geo", # Specify CPT to "geo"
285281 ... )
286- >>> # Show the plot
287282 >>> fig.show()
288283 """
289284 # Enable 'plane' if 'facade_fill' or 'facade_pen' are set
0 commit comments