apply_padding_to_margins Subroutine

public subroutine apply_padding_to_margins(pad, state, autosize_type)

Convert Vega-Lite padding to figure_state_t margins.

When autosize is "none" with "contains": "padding", the spec width/height is the data rectangle and padding is added around it. We expand the canvas to total = data + padding and compute margins as fractions of that total.

Arguments

Type IntentOptional Attributes Name
type(padding_t), intent(in) :: pad
type(figure_state_t), intent(inout) :: state
character(len=*), intent(in), optional :: autosize_type