wradlib.vis.create_cg

wradlib.vis.create_cg(st, fig=None, subplot=111)

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:
  • st (string) – scan type, ‘PPI’ or ‘RHI’
  • fig (matplotlib Figure object) – If given, the PPI 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
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