@classmethod
def AddBarPlot(cls, x_ticks, height, curve_label="", x_label="", y_label="", append=True):
- """ Testing some stuff with BarPlot"""
-
+ """ Add a new barplot and make the plot set where it is drawn the active one.
+ If no plot set exists, or none is active, a new plot set will be created, even if append is True.
+ @param x_ticks array of ticks along the X axis
+ @param height array of value representing the data ( size(height) = size(x_ticks)-1 )
+ @param curve_label label of the curve being ploted (optional, default to empty string). This is what is
+ shown in the legend.
+ @param x_label label for the X axis
+ @param y_label label for the Y axis
+ @param append whether to add the curve to the active plot set (default) or into a new one.
+ @return the id of the created curve, and the id of the corresponding plot set.
+ """
from .XYView import XYView
control = cls.GetInstance()
pm = control._plotManager
@classmethod
def AddStemPlot(cls, x, y, curve_label="", x_label="", y_label="", append=True):
- """ Testing some stuff with StemPlot"""
+ """ Add a new stemplot and make the plot set where it is drawn the active one.
+ If no plot set exists, or none is active, a new plot set will be created, even if append is True.
+ @param x x data
+ @param y y data
+ @param curve_label label of the curve being ploted (optional, default to empty string). This is what is
+ shown in the legend.
+ @param x_label label for the X axis
+ @param y_label label for the Y axis
+ @param append whether to add the curve to the active plot set (default) or into a new one.
+ @return the id of the created curve, and the id of the corresponding plot set.
+ """
from .XYView import XYView
control = cls.GetInstance()