wradlib.vis.create_cg¶
-
wradlib.vis.
create_cg
(fig=None, subplot=111, rot=-450, scale=-1, angular_spacing=10, radial_spacing=10, latmin=0, lon_cycle=360)¶ Helper function to create curvelinear grid
The function makes use of the Matplotlib AXISARTIST namespace mpl_toolkits.axisartist.
Here are some limitations to normal Matplotlib Axes. While using the Matplotlib AxesGrid Toolkit most of the limitations can be overcome. See Matplotlib AxesGrid Toolkit User’s Guide.
Parameters: - fig (matplotlib Figure object) – 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 “subplot”.
- subplot (
matplotlib.gridspec.GridSpec
, matplotlib grid definition) – nrows/ncols/plotnumber, see examples section defaults to ‘111’, only one subplot - rot (float) – Rotation of the source data in degrees, defaults to -450 for PPI, use 0 for RHI
- scale (float) – Scale of source data, defaults to -1. for PPI, use 1 for RHI
- angular_spacing (float) – Spacing of the angular grid, defaults to 10.
- radial_spacing (float) – Spacing of the radial grid, defaults to 10.
- latmin (float) – Startvalue for radial grid, defaults to 0.
- lon_cycle (float) – Angular cycle, defaults to 360.
Returns: - cgax (matplotlib toolkit axisartist Axes object) – curvelinear Axes (r-theta-grid)
- caax (matplotlib Axes object (twin to cgax)) – Cartesian Axes (x-y-grid) for plotting cartesian data
- paax (matplotlib Axes object (parasite to cgax)) – The parasite axes object for plotting polar data