Visualization

Color routines

The routines below provides access to predefined (Matplotlib) or self-produced colors and color maps.

rcatool.plot.colors.getcolormap(cmap_name[, ...])

Function to retrieve colormap, either customized (custom=True) or available through Matplotlib predefined colormaps.

rcatool.plot.colors.getsinglecolor(color_name)

Function to retrieve single custom color.

rcatool.plot.colors.norm_colors(bounds, ncolors)

In addition to min and max of levels, this function takes as arguments boundaries between which data is to be mapped.

Graphic routines

Functions for different plots such as scatterplots and mapplots,initiation and configuration of figure objects etc

rcatool.plot.plots.figure_init([plottype, ...])

Setting up a figure object

rcatool.plot.plots.image_grid_setup([...])

Set up the plot axes using mpl_toolkits.axes_grid1.ImageGrid Used primarily when plotting maps or for image analysis For more information on available settings: https://doc.ebichu.cc/matplotlib/mpl_toolkits/axes_grid1/overview.html

rcatool.plot.plots.get_nrow_ncol(npanels)

Return number of rows and columns from a given total number of panels for a grid

rcatool.plot.plots.fig_grid_setup([figsize, ...])

Set up the plot axes using pyplot.subplots

rcatool.plot.plots.axes_settings(ax[, ...])

Configuration of axes; titles and labels

rcatool.plot.plots.map_axes_settings(fig, axs)

Settings for map plot axes

rcatool.plot.plots.make_scatter_plot(grid, ...)

Create a scatter plot

rcatool.plot.plots.make_raster_plot(data[, ...])

Create a raster plot

rcatool.plot.plots.make_line_plot(grid, ydata)

Create a line plot

rcatool.plot.plots.make_box_plot(grid, data)

Create a box plot

rcatool.plot.plots.custom_legend(colors, labels)

Creates a list of matplotlib Patch objects that can be passed to the legend(...) function to create a custom legend.

rcatool.plot.plots.gen_clevels(data, nsteps)

Create contour levels based on min and max of input data

rcatool.plot.plots.map_setup(map_proj, ...)

Create a Cartopy crs object to be used in the overlaying of 2d plots.

rcatool.plot.plots.make_map_plot(data, grid, ...)

Producing map plots

rcatool.plot.plots.plot_map(ax, x, y, data, ...)

Producing a map plot

rcatool.plot.plots.image_colorbar(cs, cbaxs)

Add colobar to map plot