This module provides functions related to plot or to plot data.

center_colorbar(cb) Center a diverging colorbar around zero.
channels(met_mm_backend[, ylim, ax]) Plot instrument channels for passband-type sensors.
cmap2act(cmap[, filename, N]) Export colormap to Adobe Color Table file.
cmap2c3g(cmap[, filename, N]) Export colormap ass CSS3 gradient.
cmap2cpt(cmap[, filename, N]) Export colormap to cpt file.
cmap2ggr(cmap[, filename, N]) Export colormap as GIMP gradient.
cmap2txt(cmap[, filename, N, comments]) Export colormap to txt file.
cmap_from_act(file[, name]) Import colormap from Adobe Color Table file.
cmap_from_txt(file[, name, N, comments]) Import colormap from txt file.
colors2cmap(*args[, name]) Create a colormap from a list of given colors.
figsize(w[, portrait]) Return a figure size matching the golden ratio.
get_available_styles() Return list of names of all styles shipped with typhon.
get_subplot_arrangement(n) Get efficient (nrow, ncol) for n subplots
heatmap(x, y[, bins, bisectrix, ax]) Plot a heatmap of two data arrays.
HectoPascalFormatter() Creates hectopascal labels for pascal input.
HectoPascalLogFormatter([base, …]) Creates logarithmic hectopascal labels for pascal input.
label_axes([axes, labels, loc]) Walks through axes and labels each.
mpl_colors([cmap, N]) Return a list of RGB values.
plot_distribution_as_percentiles(ax, x, y[, …]) Plot the distribution of y vs.
profile_p(p, x[, ax]) Plot atmospheric profile against pressure in linear space.
profile_p_log(p, x[, ax]) Plot atmospheric profile against pressure in log space.
profile_z(z, x[, ax]) Plot atmospheric profile of arbitrary property against height (in km).
scatter_density_plot_matrix([M, hist_kw, …]) Plot a scatter density plot matrix
styles(name) Return absolute path to typhon stylesheet.
supcolorbar(mappable[, fig, right, rect]) Create a common colorbar for all subplots in a figure.

Typhon style sheet

# -*- coding: utf-8 -*-
"""Generate a gallery to compare all available typhon styles.
import numpy as np
import matplotlib.pyplot as plt
import typhon

def simple_plot(stylename):
    """Generate a simple plot using a given matplotlib style."""
    x = np.linspace(0, np.pi, 20)

    fig, ax = plt.subplots()
    for s in np.linspace(0, np.pi / 2, 12):
        ax.plot(x, np.sin(x+s),
                label=r'$\Delta\omega = {:.2f}$'.format(s),

# Create plot using default styles.
simple_plot('matplotlib 2.0')

# Create a plot for each available typhon style.
for style_name in typhon.plots.get_available_styles():
    style_path = typhon.plots.styles(style_name)

(Source code)