pastas.plotting.plots.series#

series(head=None, stresses=None, hist=True, kde=False, table=False, titles=True, tmin=None, tmax=None, colors_stresses=None, labels=None, figsize=(10, 5), **kwargs)[source]#

Plot all the input time Series in a single plot.

Parameters
  • head (pd.Series) – Pandas time series with DatetimeIndex.

  • stresses (List of pd.Series) – List with Pandas time series with DatetimeIndex.

  • hist (bool) – Histogram for the series. The number of bins is determined with Sturges rule.

  • kde (bool) – Kernel density estimate for the series. The kde is obtained from scipy.gaussian_kde using scott to calculate the estimator bandwidth. Returns the number of observations, mean, skew and kurtosis.

  • table (bool) – Show table with some basic statistics such as the number of observations, mean, skew and kurtosis.

  • titles (bool) – Set the titles or not. Taken from the name attribute of the series.

  • tmin (str or pd.Timestamp) –

  • tmax (str or pd.Timestamp) –

  • colors_stresses (List of str) – List with the matplotlib colorcodes to use for plotting each stress timeseries. If list is shorter than number of stresses, the remaining stresses are plotted in black. If None (default), default matplotlib colors will be used.

  • labels (List of str) – List with the labels for each subplot.

  • figsize (tuple) – Set the size of the figure.

  • kwargs – keyword arguments passed to plotting functions of stress timeseries

Return type

matplotlib.Axes