plot_averaged_class_map

mcalf.visualisation.plot_averaged_class_map(class_map, classes=None, continuous=False, xticks=0, 15, 2, yticks=0, 15, 2, xscale=0.070325, yscale=0.070325, output=None, figsize=None, dpi=600, fontfamily=None)[source]

Plot an image of the time averaged classifications

Parameters
  • class_map (ndarray, ndim=3) – Three-dimensional array of classifications, with the times given in the first dimension.

  • classes (ndarray, optional, default = ndarray of [0, 1, 2, 3, 4]) – Array of all the possible classifications in class_map.

  • continuous (bool, optional, default = False) – Whether to plot the with a continuous color scale or round to the nearest classification.

  • xticks (3-tuple, optional, default = (0, 15, 2)) – The start, stop and step for the x-axis ticks in Mm.

  • yticks (3-tuple, optional, default = (0, 15, 2)) – The start, stop and step for the y-axis ticks in Mm.

  • xscale (float, optional = 0.725 * 0.097) – Scaling factor between x-axis data coordinate steps and 1 Mm. Mm = data / xscale.

  • yscale (float, optional = 0.725 * 0.097) – Scaling factor between y-axis data coordinate steps and 1 Mm. Mm = data / xscale.

  • output (str, optional, default = None) – If present, the filename to save the plot as. If omitted, the plot will not be saved.

  • figsize (2-tuple, optional, default = None) – Size of the figure.

  • dpi (int, optional, default = 600) – The number of dots per inch. For controlling the quality of the outputted figure.

  • fontfamily (str, optional, default = None) – If provided, this family string will be added to the ‘font’ rc params group.