calculate_plot_area Subroutine

public subroutine calculate_plot_area(canvas_width, canvas_height, margins, plot_area)

Calculate plot area based on canvas size and margins (matplotlib-compatible) Note: left/bottom are margins, right/top are edge positions

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: canvas_width
integer, intent(in) :: canvas_height
type(plot_margins_t), intent(in) :: margins
type(plot_area_t), intent(out) :: plot_area