xmovie.rotating_globe
xmovie.rotating_globe#
- xmovie.rotating_globe(da, fig, timestamp, framedim='time', plotmethod=None, plot_variable=None, overlay_variables=None, lon_start=- 110, lon_rotations=0.5, lat_start=25, lat_rotations=0, land=False, gridlines=False, coastline=True, style=None, debug=False, **kwargs)#
Rotating globe plot.
- Parameters
da (
DataArray
) – Data to be plotted.fig (
Figure
) – Figure to plot on.timestamp (
int
) – Used to select the animation frame usingisel()
with dimension framedim.framedim (
str
) – Dimension name along which frames will be generated.plotmethod (
str
, optional) – Method ofxarray.DataArray.plot
to use.plot_variable (
str
, optional) – Variable to plot. Not needed forDataArray
.overlay_variables – Currently unused.
lon_start (
float
) – Central longitude at the beginning of the animation.lon_rotations (
float
) – Number of longitude rotations to be completed in the animation.lat_start (
float
) – As in lon_start.lat_rotations (
float
) – As in lon_rotations.land (
bool
) – Plot the land.gridlines (
bool
) – Plot lat/lon gridlines.coastline (
bool
) – Plot the coastlines.style (
{'standard', 'dark'}
)debug (
bool
) – Currently unused.**kwargs – Passed on to the xarray plotting method.