def _mesh(self):
x = np.array([<NUM_LIT:0.0>, <NUM_LIT:1.0>])<EOL>if self.spacing == '<STR_LIT>':<EOL><INDENT>y = self._uniform_y(self._central_N())<EOL><DEDENT>else:<EOL><INDENT>y = self._proportional_y()<EOL><DEDENT>self._y = y<EOL>X, Y = np.meshgrid(x,y)<EOL>if self.extend in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>X[<NUM_LIT:0>,:] = <NUM_LIT:0.5><EOL><DEDENT>if self.extend in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>X[-<NUM_LIT:1>,:] = <NUM_LIT:0.5><EOL><DEDENT>return X, Y<EOL>
Return X,Y, the coordinate arrays for the colorbar pcolormesh.
These are suitable for a vertical colorbar; swapping and
transposition for a horizontal colorbar are done outside
this function.