ibfoamrig.plot#

Plotting functions for ibfoamrig data.

Every plot function draws on the given axes (or new ones) and returns them, so plots can be combined in one figure. finish_figure shows and/or saves the result:

import matplotlib.pyplot as plt
from ibfoamrig.plot import finish_figure, plot_profile

plt.style.use("ibfoamrig.plot.profile")
ax = plot_profile(profiles, "s", "Ux", labels="velocity")
finish_figure(ax.figure, show=True, save="plots/velocity.png")

Classes

AxisLabels([title, xlabel, ylabel])

Title and axis labels of a plot.

Functions

finish_figure(figure, *[, show, save, close])

Shows and/or saves a figure, then closes it.

plot_geometry_2d(info, *[, axes, ax, normals])

Plots the interpolation lines projected onto a coordinate plane.

plot_geometry_3d(info, *[, ax, color_by, ...])

Plots the interpolation lines in 3D.

plot_profile(data, x, y, *[, labels, ax])

Plots one column against another for each entry of data.

plot_residuals(residuals, *[, fields, ...])

Plots residuals against time on logarithmic scale.