pygmt.params.Perspective
class pygmt.params. Perspective ( azimuth = None , elevation = None , level = None , plane = None ) [source]
Class for setting perspective view.
Examples
>>> import pygmt
>>> from pygmt.params import Perspective
>>> fig = pygmt . Figure ()
>>> fig . basemap (
... region = [ 0 , 10 , 0 , 10 , 0 , 20 ],
... projection = "X3c" ,
... zsize = "3c" ,
... frame = [ "xafg" , "yafg" , "zafg" , "wSEnZ" ],
... perspective = Perspective ( azimuth = 135 , elevation = 40 , level = 10 ),
... )
>>> fig . show ()
azimuth : float | None = None
Azimuth of the viewpoint in degrees. Default is 180.0 (looking from south to
north).
elevation : float | None = None
Elevation angle of the viewpoint in degrees. Default is 90.0 (looking straight
down at nadir).
level : float | None = None
The level at which all 2-D material, like the plot frame, is plotted. Only valid
when used together with parameters zsize /zscale . Default is at the bottom
of the z-axis.
Built with Sphinx
using a theme
provided by Read the Docs
This website uses Google Analytics to gather usage statistics.
However, it does not use cookies or track you across different websites.
Page view data are used to help us improve the site and provide an estimate of the
software usage.