prophys.plot

prophys.plot#

Quick matplotlib views of models, fields, risk maps, calibration runs and expression graphs.

The matplotlib views need the optional viz extra and return the Axes they drew into, so plots can be combined in subplot grids with ax=. graph() needs the graphviz package instead and returns a graphviz.Digraph.

Functions

distribution

Plot a density histogram of Monte Carlo samples of one attribute of a compiled model.

field

Plot a scalar Field as a heatmap in its own frame's coordinates.

risk_map

Evaluate a spatial expression at every point of a grid and plot it as a heatmap.

calibration

Plot the loss history of a calibration or optimization run.

graph

Draw the node structure of an expression graph with graphviz.