Documentation · pyvista/pyvista
Document hiding orientation axes across PyVista subplots
Adds an example to the BasePlotter.hide_axes_all docstring showing how to hide axes orientation widgets across a two-panel plot. The example uses built-in meshes and requires no external data.
The problem
The hide_axes_all docstring described its behavior but lacked a usage example. This left the method without a concrete demonstration of hiding orientation widgets across multiple renderers, a gap covered by the missing plotting API examples issue.
The approach
Create a Plotter with shape=(1, 2), placing a Cube in the first subplot and a Sphere in the second. Call show_axes_all() followed by hide_axes_all() to demonstrate the all-renderer operation, then close the plotter.
What changed
The method's docstring now includes a self-contained two-panel example. The implementation remains unchanged and still calls hide_axes() on each renderer.
- pyvista
- python
- api-documentation
- plotting
- subplots