[docs]defset_channel_type(self,channelType:int):"""Sets the type of the Linear regression Channel. Args: channelType (int): Channel type. Possible values: 0: Line 1: RaffChannel 2: StandardDeviations """self.instance.send(self.id,'setChannelType',{'channelType':channelType})returnself
[docs]defset_fill_enabled(self,fillEnabled:bool):"""Set whether areas between the channel lines are colored or not. Args: fillEnabled (bool): Set true to enable fill. """self.instance.send(self.id,'setFillEnabled',{'fillEnabled':fillEnabled})returnself
[docs]defset_line_color(self,color:str):"""Sets the color of the channel lines. Args: color (str): New line color as string, should be in HEX format e.g. #FFFFFF. """self.instance.send(self.id,'setLineColor',{'color':color})returnself
[docs]defset_line_width(self,width:int|float):"""Sets the width of the channel lines. Args: width (int | float): New line width. """self.instance.send(self.id,'setLineWidth',{'width':width})returnself
[docs]defset_number_of_standard_deviations(self,standardDeviationNumber:int):"""Sets the number of standard deviations between the linear regression line and the upper and the lower lines. Args: standardDeviationNumber (int): New number of standard deviations. """self.instance.send(self.id,'setNumberOfStandardDeviations',{'standardDeviationNumber':standardDeviationNumber},)returnself
[docs]defupdate_position(self,startX:int|float,endX:int|float):"""Updates the drawing tool based on the control points' locations. Args: startX (int | float): Starting point X location. endX (int | float): End point X location. """self.instance.send(self.id,'updateLinearRegressionChannelPosition',{'startX':startX,'endX':endX},)returnself