- VisMethods.plot(*, ax=111, fig=None, crs=None, func='pcolormesh', **kwargs)#
Plot Plan Position Indicator (PPI) or Range Height Indicator (RHI).
The implementation of this plot routine is in cartesian axes and does all coordinate transforms using xarray machinery. This allows zooming into the data as well as making it easier to plot additional data (like gauge locations) without having to convert them to the radar’s polar coordinate system.
crs='cg'the plotting is done in a curvelinear grid axes.
Additional data can be plotted in polar coordinates or cartesian coordinates depending on which axes object is used.
xarray.DataArray) – DataArray to plot
None) – cartopy CRS Coordinate Reference System describing projection If this parameter is not None,
sitemust be set properly. Then the function will attempt to georeference the radar bins and display the PPI in the coordinate system defined by the projection string.
matplotlib.figure.Figure) – If given, the PPI/RHI will be plotted into this figure object. Axes are created as needed. If None, a new figure object will be created or current figure will be used, depending on
matplotlib.gridspec.SubplotSpec) – If matplotlib Axes object is given, the PPI will be plotted into this axes object. If matplotlib grid definition is given (nrows/ncols/plotnumber), axis are created in the specified place. Defaults to ‘111’, only one subplot/axis.
str) – Name of plotting function to be used under the hood. Defaults to ‘pcolormesh’. ‘contour’ and ‘contourf’ can be selected too.
- Keyword Arguments
str, optional) – matplotlib colormap string. Defaults to wradlib default colormap, which is either Homeyer_Rainbow if cmweather is installed or turbo.
int, optional) – Lower zorder values are drawn first. Defaults to 0.
dict, optional) – Further kwargs, which are propagated to xarray plotting functions.
crscontains a curvelinear grid dict, the
cgax- curvelinear Axes (r-theta-grid) is returned.
caax- Cartesian Axes (x-y-grid) and
paax- parasite axes object for plotting polar data can be derived like this:
caax = cgax.parasites paax = cgax.parasites
Here are some limitations to normal Matplotlib Axes (see AXES_GRID1).