enforce_aspect_ratio Subroutine

public subroutine enforce_aspect_ratio(state, plot_width_px, plot_height_px)

Adjust axis limits to enforce the specified aspect ratio. For equal aspect, x and y have the same scale per pixel. For numeric ratio, y-scale = ratio * x-scale.

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in) :: plot_width_px
real(kind=wp), intent(in) :: plot_height_px