pydmd.cdmd.CDMD.plot_snapshots_2D

CDMD.plot_snapshots_2D(index_snap=None, filename=None, x=None, y=None, order='C', figsize=(8, 8))

Plot the snapshots.

Parameters
  • index_snap (int or sequence(int)) – the index of the snapshots to plot. By default, all the snapshots are plotted.

  • filename (str) – if specified, the plot is saved at filename.

  • x (numpy.ndarray) – domain abscissa.

  • y (numpy.ndarray) – domain ordinate

  • order ({'C', 'F', 'A'}, default 'C'.) – read the elements of snapshots using this index order, and place the elements into the reshaped array using this index order. It has to be the same used to store the snapshot. ‘C’ means to read/ write the elements using C-like index order, with the last axis index changing fastest, back to the first axis index changing slowest. ‘F’ means to read / write the elements using Fortran-like index order, with the first index changing fastest, and the last index changing slowest. Note that the ‘C’ and ‘F’ options take no account of the memory layout of the underlying array, and only refer to the order of indexing. ‘A’ means to read / write the elements in Fortran-like index order if a is Fortran contiguous in memory, C-like order otherwise.

  • figsize (tuple(int,int)) – tuple in inches defining the figure size. Default is (8, 8).