def _format_vector(self, vecs, form='<STR_LIT>'):
if form == '<STR_LIT>':<EOL><INDENT>return np.meshgrid(*vecs, indexing='<STR_LIT>')<EOL><DEDENT>elif form == '<STR_LIT>':<EOL><INDENT>vecs = np.meshgrid(*vecs, indexing='<STR_LIT>')<EOL>return np.rollaxis(np.array(np.broadcast_arrays(*vecs)),<NUM_LIT:0>,self.dim+<NUM_LIT:1>)<EOL><DEDENT>elif form == '<STR_LIT>':<EOL><INDENT>return vecs<EOL><DEDENT>else:<EOL><INDENT>return [v[self._coord_slicers[i]] for i,v in enumerate(vecs)]<EOL><DEDENT>
Format a 3d vector field in certain ways, see `coords` for a description
of each formatting method.