(self)
return self.CurveSymbols[shape_data]
Prepare data for shapes of points in the plot

        The method is called by `update_shapes`. It gets the data from
        the widget's `get_shape_data`, and then calls its `impute_shapes`
        to impute the missing shape (usually with some default shape).

        Returns:
            (np.ndarray): an array of symbols (e.g. o, x, + ...)
Prepare data for shapes of points in the plot
Prepare data for shapes of points in the plot
def get_shapes(self):
        """
        Prepare data for shapes of points in the plot

        The method is called by `update_shapes`. It gets the data from
        the widget's `get_shape_data`, and then calls its `impute_shapes`
        to impute the missing shape (usually with some default shape).

        Returns:
            (np.ndarray): an array of symbols (e.g. o, x, + ...)
        """
        shape_data = self.master.get_shape_data()
        shape_data = self._filter_visible(shape_data)
        # Data has to be copied so the imputation can change it in-place
        # TODO: Try avoiding this when we move imputation to the widget
        if shape_data is not None:
            shape_data = np.copy(shape_data)
        shape_imputer = getattr(
            self.master, "impute_shapes", self.default_impute_shapes)
        shape_imputer(shape_data, len(self.CurveSymbols) - 1)
        if isinstance(shape_data, np.ndarray):
            shape_data = shape_data.astype(int)
        else:
            shape_data = np.zeros(self.n_shown, dtype=int)
        return self.CurveSymbols[shape_data]
def get_shapes ( self ) : shape_data = self . master . get_shape_data ( ) shape_data = self . _filter_visible ( shape_data ) # Data has to be copied so the imputation can change it in-place # TODO: Try avoiding this when we move imputation to the widget if shape_data is not None : shape_data = np . copy ( shape_data ) shape_imputer = getattr ( self . master , "impute_shapes" , self . default_impute_shapes ) shape_imputer ( shape_data , len ( self . CurveSymbols ) - 1 ) if isinstance ( shape_data , np . ndarray ) : shape_data = shape_data . astype ( int ) else : shape_data = np . zeros ( self . n_shown , dtype = int ) return self . CurveSymbols [ shape_data ]