Plots
GridVisualize/PlutoVista
Plotting is possible e.g. via Nodal Evaluations and the plot routines from ExtendableGrids.jl. In Pluto notebooks it is recommended to use PlutoVista.jl as an backend.
UnicodePlots
For a fast and rough peak several UnicodePlots plotters are available:
ExtendableFEMBase.unicode_gridplot
— Methodfunction unicode_gridplot(
xgrid::ExtendableGrid;
title = "gridplot",
resolution = (40,20),
color = (200,200,200),
bface_color = (255,0,0),
CanvasType = BrailleCanvas,
plot_based = ON_CELLS, # or ON_FACES/ON_EDGES
kwargs...
Plots the grid on a UnicodePlots canvas (default: BrailleCanvas) by drawing all edges in the triangulation.
ExtendableFEMBase.unicode_scalarplot
— Methodfunction unicode_scalarplot(
u::FEVectorBlock;
components = 1:get_ncomponents(u),
abs = false,
resolution = (30,30),
colormap = :viridis,
title = u.name,
kwargs...)
Plots components of the finite element function in the FEVectorBlock u by using a lazy_interpolate! onto a coarse uniform mesh and UnicodePlots.jl lineplot or heatmap for 1D or 2D, respectively.
In 1D all components all plotted in the same lineplot, while in 2D all components are plotted in a separate heatmap.
If abs = true, only the absolute value over the components is plotted.