def update_scalarmappable(self):
if self._A is None:<EOL><INDENT>return<EOL><DEDENT>if self._A.ndim > <NUM_LIT:1>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if len(self._facecolors):<EOL><INDENT>self._facecolors = self.to_rgba(self._A, self._alpha)<EOL><DEDENT>else:<EOL><INDENT>self._edgecolors = self.to_rgba(self._A, self._alpha)<EOL><DEDENT>
If the scalar mappable array is not none, update colors
from scalar data