rockverse.viz.OrthogonalViewer.shrink_to_fit#

OrthogonalViewer.shrink_to_fit()[source]#

Adjust the figure size to fit the ideal proportions of the content.

This method reduces the size of the figure by scaling down the largest side to ensure that all axes and components fit neatly within the figure without unnecessary white space. It helps optimize the layout of the visualization, particularly after modifications to the displayed planes or components.

This method is especially useful when toggling the visibility of different slices or adjusting the figure’s contents, ensuring that the presentation remains visually appealing and focused on the data.