plot_contour (method)

plot_contour(self, label=None, index=None, indices=None, is_surf=False, is_radial=False, is_center=False, clim=None, field_name=None, group_names=None, save_path=None, itime=0, is_show_fig=True)[source]

Plot the contour of a field on a mesh using pyvista plotter.

Parameters
  • self (MeshSolution) – a MeshSolution object

  • label (str) – a label

  • index (int) – an index

  • indices (list) – list of the points to extract (optional)

  • is_surf (bool) – field over outer surface

  • is_radial (bool) – radial component only

  • is_center (bool) – field at cell-centers

  • clim (list) – a list of 2 elements for the limits of the colorbar

  • field_name (str) – title of the field to display on plot

  • group_names (list) – a list of str corresponding to group name(s)

  • save_path (str) – path to save the figure

  • itime (int) – index of the time step to be plotted

  • is_show_fig (bool) – To call show at the end of the method