(self)
return sizes
Prepare data for sizes of points in the plot

        The method is called by `update_sizes`. It gets the sizes
        from the widget and performs the necessary scaling and sizing.
        The output is rounded to half a pixel for faster drawing.

        Returns:
            (np.ndarray): sizes
Prepare data for sizes of points in the plot
Prepare data for sizes of points in the plot
def get_sizes(self):
        """
        Prepare data for sizes of points in the plot

        The method is called by `update_sizes`. It gets the sizes
        from the widget and performs the necessary scaling and sizing.
        The output is rounded to half a pixel for faster drawing.

        Returns:
            (np.ndarray): sizes
        """
        size_column = self.master.get_size_data()
        if size_column is None:
            return np.full((self.n_shown,),
                           self.MinShapeSize + (5 + self.point_width) * 0.5)
        size_column = self._filter_visible(size_column)
        size_column = size_column.copy()
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", category=RuntimeWarning)
            size_column -= np.nanmin(size_column)
            mx = np.nanmax(size_column)
        if mx > 0:
            size_column /= mx
        else:
            size_column[:] = 0.5

        sizes = self.MinShapeSize + (5 + self.point_width) * size_column
        # round sizes to half pixel for smaller pyqtgraph's symbol pixmap atlas
        sizes = (sizes * 2).round() / 2
        return sizes
def get_sizes ( self ) : size_column = self . master . get_size_data ( ) if size_column is None : return np . full ( ( self . n_shown , ) , self . MinShapeSize + ( 5 + self . point_width ) * 0.5 ) size_column = self . _filter_visible ( size_column ) size_column = size_column . copy ( ) with warnings . catch_warnings ( ) : warnings . simplefilter ( "ignore" , category = RuntimeWarning ) size_column -= np . nanmin ( size_column ) mx = np . nanmax ( size_column ) if mx > 0 : size_column /= mx else : size_column [ : ] = 0.5 sizes = self . MinShapeSize + ( 5 + self . point_width ) * size_column # round sizes to half pixel for smaller pyqtgraph's symbol pixmap atlas sizes = ( sizes * 2 ) . round ( ) / 2 return sizes