fortplot_spec_config_apply Module

Applies config_t values to figure_state_t for rendering.



Subroutines

public subroutine apply_style_defaults(style_name, spec, dpi, force)

Fill spec%config from built-in style. When force=.true., overrides any JSON-provided config. When force=.false. (default), only fills when absent.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: style_name
type(spec_t), intent(inout) :: spec
real(kind=wp), intent(in) :: dpi
logical, intent(in), optional :: force

public subroutine apply_config_to_state(cfg, state)

Translate config_t into figure_state_t fields.

Arguments

Type IntentOptional Attributes Name
type(config_t), intent(in) :: cfg
type(figure_state_t), intent(inout) :: state

public subroutine set_legend_position_from_orient(orient, position)

Single source of truth for orient string -> position int.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: orient
integer, intent(inout) :: position

public subroutine apply_padding_to_margins(pad, state, autosize_type)

Convert Vega-Lite padding to figure_state_t margins.

Read more…

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