equalize_aspect_limits Subroutine

public subroutine equalize_aspect_limits(aspect_mode, aspect_ratio, plot_width_px, plot_height_px, x_min, x_max, y_min, y_max)

Widen one data range about its centre so that one y data unit spans aspect_ratio times the pixel length of one x data unit ('equal': ratio 1) in a plot box of plot_width_px x plot_height_px (matplotlib's adjustable='datalim'). 'auto' leaves the limits.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: aspect_mode
real(kind=wp), intent(in) :: aspect_ratio
real(kind=wp), intent(in) :: plot_width_px
real(kind=wp), intent(in) :: plot_height_px
real(kind=wp), intent(inout) :: x_min
real(kind=wp), intent(inout) :: x_max
real(kind=wp), intent(inout) :: y_min
real(kind=wp), intent(inout) :: y_max