interval_plot#
- ansys.stk.extensions.data_analysis.graphs.graph_helpers.interval_plot(data: list[DataFrame], root: STKObjectRoot, element_pairs: list, numerical_columns: list[str], time_columns: list[str], x_label: str, title: str, colormap: Colormap = None, time_unit_abbreviation: str = 'UTCG', formatter: collections.abc.Callable[[float, float], str] = None) Figure, Axes#
Create an interval plot from the provided list of dataframes.
- Parameters:
data :
listofDataFrameThe list of DataFrames containing the data.root :
STKObjectRootThe STK object root.numerical_columns :
listofstrThe list of dataframe columns with numerical values.time_columns :
listofstrThe list of dataframe columns with time values.x_label :
strThe label for the x-axis.title :
strThe title of the chart.colormap :
ColormapThe colormap with which to color the lines (the default is None).time_unit_abbreviation :
strThe time unit for formatting (the default is “UTCG”).formatter :
Callable[[float,float],str] The formatter for time axes (the default is None).- Returns:
FigureThe newly created figure.AxesThe newly created axes.
Import detail#
from ansys.stk.extensions.data_analysis.graphs.graph_helpers import interval_plot