Axes box aspect
This demo shows how to set the aspect of an Axes box directly via
set_box_aspect. The box aspect is the ratio between Axes height
and Axes width in physical units, independent of the data limits.
This is useful to e.g. produce a square plot, independent of the data it
contains, or to have a usual plot with the same axes dimensions next to
an image plot with fixed (data-)aspect.
The following lists a few use cases for set_box_aspect.
A square Axes, independent of data
Produce a square Axes, no matter what the data limits are.
import





