flip_x#
- ExplicitStructuredGrid.flip_x(point=None, transform_all_input_vectors=False, inplace=False)#
Flip mesh about the x-axis.
Note
See also the notes at
transform()
which is used by this filter under the hood.- Parameters:
- Returns:
pyvista.DataSet
Flipped dataset.
Examples
>>> import pyvista >>> from pyvista import examples >>> pl = pyvista.Plotter(shape=(1, 2)) >>> pl.subplot(0, 0) >>> pl.show_axes() >>> mesh1 = examples.download_teapot() >>> _ = pl.add_mesh(mesh1) >>> pl.subplot(0, 1) >>> pl.show_axes() >>> mesh2 = mesh1.flip_x(inplace=False) >>> _ = pl.add_mesh(mesh2) >>> pl.show(cpos="xy")