fedoo.MultiFrameDataSet.plot_history

MultiFrameDataSet.plot_history(field: str, indices: int | list[int], component: int | str = 0, data_type: str | None = 'Node', show_legend: bool = True, **kargs) None

Plot history data from the MultiFrameDataSet.

Parameters:
  • field (str) – Name of the data field to plot.

  • indices (int, list[int]) – The node/elements/gauss point indice(s) over which the solution is extracted. If several indices as given, data extrated from each node/cell indices are plot on the same graph.

  • component (int, str, None, optional) – Index or label of the component to extract if the data is multi-dimensional. If None, all components are ploted on the same graph.

  • data_type (str, None, default = "Node") – Desired data type to convert to. Can be one of ‘Node’, ‘Element’, or ‘GaussPoint’. If None, the original data type is preserved.

  • show_legend (bool, default = True) – Whereas the legend should be plotted.

Notes

The GaussPoint indices are arange in gausspoint major ordering. For instance, if n_elements = 3 and n_gp = 2 the stored values are: [elem0_gp0, elem1_gp0, elem2_gp0, elem0_gp1, elem1_gp1, elem2_gp1]