# Examples from pyvista.AxesGeometrySource.symmetric_bounds
# =========================================================

# Get the symmetric bounds of the axes.
import pyvista as pv
axes_geometry_source = pv.AxesGeometrySource(symmetric_bounds=True)
axes_geometry_source.output.bounds

axes_geometry_source.output.center

# Get the asymmetric bounds.
axes_geometry_source.symmetric_bounds = False
axes_geometry_source.output.bounds

axes_geometry_source.output.center

# Show the difference in camera positioning with and without
# symmetric bounds. Orientation is added for visualization.
# Create actors.
axes_sym = pv.AxesAssembly(orientation=(90, 0, 0), symmetric_bounds=True)
axes_asym = pv.AxesAssembly(orientation=(90, 0, 0), symmetric_bounds=False)

# Show multi-window plot.
pl = pv.Plotter(shape=(1, 2))
pl.subplot(0, 0)
_ = pl.add_text('Symmetric bounds')
_ = pl.add_actor(axes_sym)
pl.subplot(0, 1)
_ = pl.add_text('Asymmetric bounds')
_ = pl.add_actor(axes_asym)
pl.show()

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

