rockverse.viz.OrthogonalViewer.expand_to_fit#
- OrthogonalViewer.expand_to_fit()[source]#
Adjust the figure size to ensure that all content fits within the figure.
This method increases the size of the figure by scaling up the smallest side to match the ideal proportions of the displayed content. It ensures that all axes, components, and visual elements are adequately visible without clipping or unnecessary overlap.
This method is particularly useful after changing which planes or components are displayed, helping to maintain an optimized layout and providing a more comprehensive view of the data.