feec.multipatch.plotting_utilities#
Functions#
|
|
|
|
|
get the physical field values, given the logical field and the logical grid :param u: FemField :param etas: logical grid :param space_kind: specifies the push-forward for the physical values |
|
|
|
|
|
plot a list of scalar fields on a list of patches |
|
|
|
plot a discrete field (given as a FemField or by its coeffs in numpy or stencil format) on the given domain |
Details#
- get_grid_vals(u, etas, mappings_list, space_kind='hcurl')[source]#
get the physical field values, given the logical field and the logical grid :param u: FemField :param etas: logical grid :param space_kind: specifies the push-forward for the physical values
- plot_field(fem_field=None, stencil_coeffs=None, numpy_coeffs=None, Vh=None, domain=None, surface_plot=False, cb_min=None, cb_max=None, plot_type='amplitude', cmap='hsv', space_kind=None, title=None, filename='dummy_plot.png', subtitles=None, N_vis=20, vf_skip=2, hide_plot=True)[source]#
plot a discrete field (given as a FemField or by its coeffs in numpy or stencil format) on the given domain
- Parameters:
- numpy_coeffs(np.ndarray)
Coefficients of the field to plot
- VhTensorFemSpace
Fem space needed if v is given by its coeffs
- space_kind(str)
type of the push-forward defining the physical Fem Space
- N_vis(int)
nb of visualization points per patch (per dimension)
- my_small_plot(title, vals, titles=None, xx=None, yy=None, gridlines_x1=None, gridlines_x2=None, surface_plot=False, cmap='viridis', cb_min=None, cb_max=None, save_fig=None, save_vals=False, hide_plot=False, dpi='figure', show_xylabel=True)[source]#
plot a list of scalar fields on a list of patches
- Parameters:
- title(str)
title of the plot
- vals(list)
list of scalar fields to plot
- titles(list)
list of titles for each plot
- xx(list)
list of x-coordinates of the grid points
- yy(list)
list of y-coordinates of the grid points