(self)
Set z-values for point in the plot

        The order is as follows:
        - selected points that are also in the subset on top,
        - followed by selected points,
        - followed by points from the subset,
        - followed by the rest.
        Within each of these four groups, points are ordered by their colors.

        Points with less frequent colors are above those with more frequent.
        The points for which the value for the color is missing are at the
        bottom of their respective group.
Set z-values for point in the plot
Set z - values for point in the plot
def update_z_values(self):
        """
        Set z-values for point in the plot

        The order is as follows:
        - selected points that are also in the subset on top,
        - followed by selected points,
        - followed by points from the subset,
        - followed by the rest.
        Within each of these four groups, points are ordered by their colors.

        Points with less frequent colors are above those with more frequent.
        The points for which the value for the color is missing are at the
        bottom of their respective group.
        """
        if not self.scatterplot_item:
            return

        subset = self.master.get_subset_mask()
        c_data = self.master.get_color_data()
        if subset is None and self.selection is None and c_data is None:
            self.scatterplot_item.setZ(None)
            return

        z = np.zeros(self.n_shown)

        if subset is not None:
            subset = self._filter_visible(subset)
            z[subset] += 1000

        if self.selection is not None:
            z[self._filter_visible(self.selection) != 0] += 2000

        if c_data is not None:
            c_nan = np.isnan(c_data)
            vis_data = self._filter_visible(c_data)
            vis_nan = np.isnan(vis_data)
            z[vis_nan] -= 999
            if not self.master.is_continuous_color():
                dist = np.bincount(c_data[~c_nan].astype(int))
                vis_knowns = vis_data[~vis_nan].astype(int)
                argdist = np.argsort(dist)
                z[~vis_nan] -= argdist[vis_knowns]

        self.scatterplot_item.setZ(z)
def update_z_values ( self ) : if not self . scatterplot_item : return subset = self . master . get_subset_mask ( ) c_data = self . master . get_color_data ( ) if subset is None and self . selection is None and c_data is None : self . scatterplot_item . setZ ( None ) return z = np . zeros ( self . n_shown ) if subset is not None : subset = self . _filter_visible ( subset ) z [ subset ] += 1000 if self . selection is not None : z [ self . _filter_visible ( self . selection ) != 0 ] += 2000 if c_data is not None : c_nan = np . isnan ( c_data ) vis_data = self . _filter_visible ( c_data ) vis_nan = np . isnan ( vis_data ) z [ vis_nan ] -= 999 if not self . master . is_continuous_color ( ) : dist = np . bincount ( c_data [ ~ c_nan ] . astype ( int ) ) vis_knowns = vis_data [ ~ vis_nan ] . astype ( int ) argdist = np . argsort ( dist ) z [ ~ vis_nan ] -= argdist [ vis_knowns ] self . scatterplot_item . setZ ( z )