Examples#

The following examples show off the functionality of EMCPy. The examples give reference to what can be done with these collection of tools. Please do not hesitate to issue a pull request to add further examples!

Line Plots#

Creating a Skew-T Log-p Plot

Creating a Skew-T Log-p Plot

Dual y-axes (twinx)

Dual y-axes (twinx)

Error bars & shaded confidence band

Error bars & shaded confidence band

Invert log scale

Invert log scale

Line Plot Options

Line Plot Options

Line styles & legend outside

Line styles & legend outside

Log and symlog scales

Log and symlog scales

Plotting multiple lines on a single plot

Plotting multiple lines on a single plot

Datetime axis with monthly majors and weekly minors

Datetime axis with monthly majors and weekly minors

Statistical Plots#

Box vs Violin

Box vs Violin

Hexbin vs 2D Histogram with Colorbars

Hexbin vs 2D Histogram with Colorbars

Histogram with KDE Overlay

Histogram with KDE Overlay

Layered histograms

Layered histograms

Scatter with Linear Regression Fit

Scatter with Linear Regression Fit

Gridded Plots#

Discrete fields GriddedPlot, Contour, and Contourf support integer_field=True. See note in Explanations.

Discrete filled contours

Discrete filled contours

Filled contours with line overlays

Filled contours with line overlays

Pcolormesh

Pcolormesh

Two panels with one shared colorbar

Two panels with one shared colorbar

Map Plots#

Discrete fields in MapGridded and MapScatter support integer_field=True. See note in Explanations.

Create a custom map domain

Create a custom map domain

Plotting contours on a map plot

Plotting contours on a map plot

Filled contours (Lambert CONUS)

Filled contours (Lambert CONUS)

Global gridded (PlateCarree) with coastlines

Global gridded (PlateCarree) with coastlines

Creating a map plot with no data

Creating a map plot with no data

Plotting 2D scatter data on map plot

Plotting 2D scatter data on map plot

Map scatter (basic)

Map scatter (basic)

Map scatter (integer categories)

Map scatter (integer categories)

Overlay: filled contour + contour + scatter

Overlay: filled contour + contour + scatter

Gallery generated by Sphinx-Gallery