Plotting
In order to avoid drawing in of heavy dependencies for VoronoiFVM, the plot methods for grids and grid functions defined in this package have as their first argument the module of the plotting package used.
Currently, PyPlot and Plots are supported. Similar schemes in the future might work for Makie and other packages.
VoronoiFVM.isplots
— Methodisplots(Plotter::Any) -> Bool
Check if plotter is Plots
VoronoiFVM.ispyplot
— Methodispyplot(Plotter::Any) -> Bool
Check if plotter is PyPlot
VoronoiFVM.frgb
— Methodfrgb(Plotter::Any, i::Any, max::Any; pastel) -> Any
Plot color scale for grid colors.
VoronoiFVM.isplotter
— Methodisplotter(Plotter::Any) -> Bool
Check if plotter is a plotter at all.
VoronoiFVM.plot
— Methodplot(Plotter::Any, grid::VoronoiFVM.AbstractGrid, U::AbstractArray; color, cmap, label, levels, aspect, clear, show) -> Any
Plot array as piecewise linear function on grid.
VoronoiFVM.plot
— Methodplot(Plotter::Any, grid::VoronoiFVM.Grid; aspect, clear, show, p) -> Any
Plot grid.
VoronoiFVM.plot
— Methodplot(Plotter::Any, grid::VoronoiFVM.SubGrid, U::AbstractArray; color, label, clear, show, p) -> Any
Plot array as piecewise constant function on subgrid
VoronoiFVM.plot
— Methodplot(Plotter::Any, subgrid::VoronoiFVM.SubGrid; clear, show) -> Any
Plot subgrid.