polar_chart#
- ansys.stk.extensions.data_analysis.graphs.graph_helpers.polar_chart(data: list[DataFrame], root: STKObjectRoot, numerical_columns: list[str], axis: dict, title: str, origin_0: bool = False, convert_negative_r: bool = False, colormap: Colormap = None) Figure, Axes#
Create a polar chart from the provided dataframe and axis information.
- Parameters:
data :
listofDataFrameThe list of DataFrames containing the data.root :
STKObjectRootThe STK object root.numerical_columns :
listofstrThe list of dataframe columns with numerical values.axis :
dictThe dictionary containing information about the data to plot.title :
strThe title of the chart.origin_0 :
boolWhether to set the theta 0 point to the top of the graph.convert_negative_r :
boolWhether to convert negative radius values by using opposite angle values.colormap :
ColormapThe colormap with which to color the lines (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 polar_chart