timflow.transient.plots.PlotTransient.contour#
- timflow.transient.plots.PlotTransient.contour(win, ngr=20, t=1, layers=0, levels=20, layout=True, labels=True, decimals=1, color=None, ax=None, figsize=None, legend=True)#
Contour plot.
- Parameters:
win (list or tuple) – [x1, x2, y1, y2]
ngr (scalar, tuple or list) – if scalar: number of grid points in x and y direction if tuple or list: nx, ny, number of grid points in x and y direction
t (scalar) – time
layers (integer, list or array) – layers for which grid is returned
levels (integer or array (default 20)) – levels that are contoured
layout (boolean (default True_)) – plot layout of elements
labels (boolean (default True)) – print labels along contours
decimals (integer (default 1)) – number of decimals of labels along contours
color (str or list of strings) – color of contour lines
ax (matplotlib.Axes) – axes to plot on, default is None which creates a new figure
figsize (tuple of 2 values (default is mpl default)) – size of figure
legend (list or boolean (default True)) – add legend to figure if list of strings: use strings as names in legend
- Returns:
ax – axes with plot
- Return type:
matplotlib.Axes