fortplot_figure_configuration Module

Figure configuration module

Single Responsibility: Configure figure dimensions, backend, labels, scales, and axis limits after initialization. Extracted from fortplot_figure_initialization to respect module size limits.



Subroutines

public subroutine setup_figure_backend(state, backend_name)

Setup or change the figure backend

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
character(len=*), intent(in) :: backend_name

public subroutine configure_figure_dimensions(state, width, height)

Configure figure dimensions

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
integer, intent(in), optional :: width
integer, intent(in), optional :: height

public subroutine set_figure_labels(state, title, xlabel, ylabel)

Set figure labels

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
character(len=*), intent(in), optional :: title
character(len=*), intent(in), optional :: xlabel
character(len=*), intent(in), optional :: ylabel

public subroutine set_figure_scales(state, xscale, yscale, threshold, base, linscale)

Set axis scale types

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
character(len=*), intent(in), optional :: xscale
character(len=*), intent(in), optional :: yscale
real(kind=wp), intent(in), optional :: threshold
real(kind=wp), intent(in), optional :: base
real(kind=wp), intent(in), optional :: linscale

public subroutine set_figure_limits(state, x_min, x_max, y_min, y_max)

Set axis limits

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in), optional :: x_min
real(kind=wp), intent(in), optional :: x_max
real(kind=wp), intent(in), optional :: y_min
real(kind=wp), intent(in), optional :: y_max