(size, maxsize=None)
return [(i*maxsize, min(maxsize+1, size-i*maxsize)) for i in xrange(nslices)]
Return a list of slices for a given dataset size.
        
        Arguments:
          * size: the size of the dataset, i.e. the number of points.
          
        Returns:
          * slices: a list of pairs `(position, slice_size)` where `position`
            is the position of this slice in the original buffer, and
            `slice_size` the slice size.
Return a list of slices for a given dataset size.
        
        Arguments:
          * size: the size of the dataset, i.e. the number of points.
          
        Returns:
          * slices: a list of pairs `(position, slice_size)` where `position`
            is the position of this slice in the original buffer, and
            `slice_size` the slice size.
Return a list of slices for a given dataset size . Arguments : * size : the size of the dataset i . e . the number of points . Returns : * slices : a list of pairs ( position slice_size ) where position is the position of this slice in the original buffer and slice_size the slice size .
def _get_slices(size, maxsize=None):
        """Return a list of slices for a given dataset size.
        
        Arguments:
          * size: the size of the dataset, i.e. the number of points.
          
        Returns:
          * slices: a list of pairs `(position, slice_size)` where `position`
            is the position of this slice in the original buffer, and
            `slice_size` the slice size.
        
        """
        if maxsize is None:
            maxsize = MAX_VBO_SIZE
        if maxsize > 0:
            nslices = int(np.ceil(size / float(maxsize)))
        else:
            nslices = 0
        return [(i*maxsize, min(maxsize+1, size-i*maxsize)) for i in xrange(nslices)]
def _get_slices ( size , maxsize = None ) : if maxsize is None : maxsize = MAX_VBO_SIZE if maxsize > 0 : nslices = int ( np . ceil ( size / float ( maxsize ) ) ) else : nslices = 0 return [ ( i * maxsize , min ( maxsize + 1 , size - i * maxsize ) ) for i in xrange ( nslices ) ]