(self)
return x, y
Prepare coordinates of the points in the plot

        The method is called by `update_coordinates`. It gets the coordinates
        from the widget, jitters them and return them.

        The methods also initializes the sample indices if neededd and stores
        the original and sampled number of points.

        Returns:
            (tuple): a pair of numpy arrays containing (sampled) coordinates,
                or `(None, None)`.
Prepare coordinates of the points in the plot
Prepare coordinates of the points in the plot
def get_coordinates(self):
        """
        Prepare coordinates of the points in the plot

        The method is called by `update_coordinates`. It gets the coordinates
        from the widget, jitters them and return them.

        The methods also initializes the sample indices if neededd and stores
        the original and sampled number of points.

        Returns:
            (tuple): a pair of numpy arrays containing (sampled) coordinates,
                or `(None, None)`.
        """
        x, y = self.master.get_coordinates_data()
        if x is None:
            self.n_valid = self.n_shown = 0
            return None, None
        self.n_valid = len(x)
        self._create_sample()
        x = self._filter_visible(x)
        y = self._filter_visible(y)
        # Jittering after sampling is OK if widgets do not change the sample
        # semi-permanently, e.g. take a sample for the duration of some
        # animation. If the sample size changes dynamically (like by adding
        # a "sample size" slider), points would move around when the sample
        # size changes. To prevent this, jittering should be done before
        # sampling (i.e. two lines earlier). This would slow it down somewhat.
        x, y = self.jitter_coordinates(x, y)
        return x, y
def get_coordinates ( self ) : x , y = self . master . get_coordinates_data ( ) if x is None : self . n_valid = self . n_shown = 0 return None , None self . n_valid = len ( x ) self . _create_sample ( ) x = self . _filter_visible ( x ) y = self . _filter_visible ( y ) # Jittering after sampling is OK if widgets do not change the sample # semi-permanently, e.g. take a sample for the duration of some # animation. If the sample size changes dynamically (like by adding # a "sample size" slider), points would move around when the sample # size changes. To prevent this, jittering should be done before # sampling (i.e. two lines earlier). This would slow it down somewhat. x , y = self . jitter_coordinates ( x , y ) return x , y