xoa.plot

Plotting utilities

Filters are adapted from https://matplotlib.org/stable/gallery/misc/demo_agg_filter.html?highlight=agg%20filter and http://vacumm.github.io/vacumm/library/misc.core_plot.html

Functions

add_agg_filter(objs, filter[, zorder, ax, add])

Add a filtered version of objects to plot

add_glow(objs[, width, zorder, color, ax, ...])

Add a glow effect to text

add_lightshading(objs[, width, fraction, ...])

Add a light shading effect to objects

add_shadow(objs[, width, xoffset, yoffset, ...])

Add a drop-shadow to objects

plot_double_minimap(obj[, regional_ax])

Plot a global minimap and a regional minimap

plot_flow(u, v[, duration, step, particles, ...])

Plot currents as a windy-like plot with random little lagrangian tracks

plot_minimap(obj[, ax, fig, extent, ...])

Plot a small map to show the geographic situation of coordinates

plot_ts(temp, sal[, dens, pres, potential, ...])

Plot a TS diagram

Classes

DropShadowFilter(width[, alpha, color, offsets])

Create a drop shadow

FilteredArtistList(artist_list, filter)

A simple container to draw filtered artist.

GaussianFilter(sigma[, alpha, color])

Gaussian filter

GrowFilter(pixels[, color, alpha])

Enlarge the area

LightFilter(sigma[, fraction])

Apply a light filter

OffsetFilter([offsets])