(self, z)
Set z values for all points.

        Points with higher values are plotted on top of those with lower.

        Args:
            z (np.ndarray or None): a vector of z values
Set z values for all points.
Set z values for all points .
def setZ(self, z):
        """
        Set z values for all points.

        Points with higher values are plotted on top of those with lower.

        Args:
            z (np.ndarray or None): a vector of z values
        """
        if z is None:
            self._z_mapping = self._inv_mapping = None
        else:
            assert len(z) == len(self.data)
            self._z_mapping = np.argsort(z)
            self._inv_mapping = np.argsort(self._z_mapping)
def setZ ( self , z ) : if z is None : self . _z_mapping = self . _inv_mapping = None else : assert len ( z ) == len ( self . data ) self . _z_mapping = np . argsort ( z ) self . _inv_mapping = np . argsort ( self . _z_mapping )