andes.plot.TDSData#

class andes.plot.TDSData(full_name=None, mode='file', dae=None, path=None)[source]#

A data container for loading and plotting results from Andes time-domain simulation.

__init__(full_name=None, mode='file', dae=None, path=None)[source]#

Methods

bqplot_data(xdata, ydata, *[, xheader, ...])

Plot with bqplot.

data_to_df()

Convert to pandas.DataFrame

export_csv([path, idx, header, formatted, ...])

Export to a csv file.

find(query[, exclude, formatted, idx_only])

Return variable names and indices matching query.

get_call([backend])

Get the internal plot_data function for the specified backend.

get_header(idx[, formatted])

Return a list of the variable names at the given indices.

get_values(idx)

Return the variable values at the given indices.

guess_event_time()

Guess the event starting time from the input data by checking when the values start to change

load_dae()

Load from DAE time series.

load_lst()

Load the lst file into internal data structures _idx, _fname, _uname, and counts the number of variables to nvars.

load_npy_or_csv([delimiter])

Load the npy, zpy or (the legacy) csv file into the internal data structure self._xy.

panoview(mdl, vars, *[, ncols, idx, a, figsize])

Panoramic view of variables of a given model instance.

plot(yidx[, xidx, a, ytimes, ycalc, left, ...])

Entry function for plotting.

plot_data(xdata, ydata, *[, xheader, ...])

Plot lines for the supplied data and options.

plotn(nrows, ncols, yidxes[, xidxes, dpi, ...])

Plot multiple subfigures in one figure.