sensortoolkit.plotting._plot_formatting

This module contains methods for configuring various plot formatting presets (e.g., configuring the fontsize, wrapping long figure titles over multiple lines, specifying figure dimensions for formatting figures with multiple subplots, each displaying sensor data, etc.).


@Author:
Samuel Frederick, NSSC Contractor (ORAU)
U.S. EPA / ORD / CEMM / AMCD / SFSB
Created:

Mon Jan 27 08:49:12 2020

Last Updated:

Wed Jul 28 14:13:57 2021

Functions

get_colormap_range

Set default range for colormap based on number of sensors

met_scatter_lims

Set axes limits for plots generated by normalized_met_scatter().

sensor_subplot_formatting

Configure subplot parameters that control the spacing of subplots, number of subplots and dimensions of the Matplotliub axes object array, color bar formatting, etc.

set_fontsize

Selects fontsize for figures based on the number of sensors present in the sensor serial ID dictionary.

subplot_dims

Recommends subplot dimensions based on the nearest perfect square for number of sensors (except when n%10, n_cols in multiples of 5)

wrap_text

Formats plotting text with line breaks based on specified text length.