buffalo_panel.app.gui.expand_limits_to_aspect

buffalo_panel.app.gui.expand_limits_to_aspect(xlim, ylim, axes_width, axes_height)[source]

Expand limits to match a physical aspect ratio.

This ensures that ‘equal’ aspect scaling doesn’t cause unexpected clipping or missing streamlines when the window is resized.

Return type:

tuple[tuple[float, float], tuple[float, float]]