12. Plotting interface

Since meshes are a quite complicated data structure (at least compared to simple grids), pyoomph has a built-in feature to plot meshes and fields. Two-dimensional domains are drawn as spatial maps - colour-keyed fields over the domain, with arrows and streamlines on top - by MatplotlibPlotter. One-dimensional domains have no area to fill, so they are drawn as ordinary x-y graphs instead, by MatplotlibPlotter1D. Three-dimensional domains are not covered yet; export them and use e.g. Paraview.

To activate plotting, one has to set the plotter property of the Problem class to either an instance or a list of instances of one of these plotter classes, defined in the modules pyoomph.output.plotting and pyoomph.output.plotting1d. After each output() call, plots will be generated automatically.