# Examples from pyvista.AxesAssembly.set_actor_prop
# =================================================

# Set `ambient` for all axes shafts and tips to a
# single value.
import pyvista as pv
axes_assembly = pv.AxesAssembly()
axes_assembly.set_actor_prop('ambient', 0.7)
axes_assembly.get_actor_prop('ambient')

# Set the property again, but this time set separate values for each part.
values = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]
axes_assembly.set_actor_prop('ambient', values)
axes_assembly.get_actor_prop('ambient')

# Set `opacity` for the x-axis only. The property is set
# for both the axis shaft and tip by default.
axes_assembly.set_actor_prop('opacity', 0.5, axis='x')
axes_assembly.get_actor_prop('opacity')

# Set the property again, but this time set separate values for the shaft and tip.
axes_assembly.set_actor_prop('opacity', [0.3, 0.7], axis='x')
axes_assembly.get_actor_prop('opacity')

# Set `show_edges` for the axes shafts only. The property
# is set for all axes by default.
axes_assembly.set_actor_prop('show_edges', True, part='shaft')
axes_assembly.get_actor_prop(
    'show_edges'
)

# Set the property again, but this time set separate values for each shaft.
axes_assembly.set_actor_prop(
    'show_edges', [True, False, True], part='shaft'
)
axes_assembly.get_actor_prop(
    'show_edges'
)

# Set `style` for a single axis and specific part.
axes_assembly.set_actor_prop('style', 'wireframe', axis='x', part='shaft')
axes_assembly.get_actor_prop('style')

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

