fortplot_figure_core_config Module

Figure configuration operations module

This module contains figure configuration functionality (labels, scales, limits) extracted from fortplot_figure_core for architectural compliance

ARCHITECTURAL REFACTORING (Issue #678): - Focused module for configuration operations - Single Responsibility Principle compliance - Clean separation from plot data management

============================================================================= CORE MODULE DELEGATION PROCEDURES Simple wrapper procedures for core module delegation pattern =============================================================================



Subroutines

public subroutine set_xlabel_figure(state, xlabel_compat, label)

Set x-axis label

Arguments

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

public subroutine set_ylabel_figure(state, ylabel_compat, label)

Set y-axis label

Arguments

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

public subroutine set_title_figure(state, title_compat, title)

Set figure title

Arguments

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

public subroutine set_xscale_figure(state, scale, threshold)

Set x-axis scale type

Arguments

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

public subroutine set_yscale_figure(state, scale, threshold)

Set y-axis scale type

Arguments

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

public subroutine set_xlim_figure(state, x_min, x_max)

Set x-axis limits

Arguments

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

public subroutine set_ylim_figure(state, y_min, y_max)

Set y-axis limits

Arguments

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

public subroutine set_line_width_figure(state, width)

Set line width for subsequent plots

Arguments

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

public subroutine grid_figure(state, enabled, which, axis, alpha, linestyle)

Enable/disable and configure grid lines

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
logical, intent(in), optional :: enabled
character(len=*), intent(in), optional :: which
character(len=*), intent(in), optional :: axis
real(kind=wp), intent(in), optional :: alpha
character(len=*), intent(in), optional :: linestyle

public subroutine core_set_xlabel(state, xlabel_compat, label)

Arguments

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

public subroutine core_set_ylabel(state, ylabel_compat, label)

Arguments

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

public subroutine core_set_title(state, title_compat, title)

Arguments

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

public subroutine core_set_xscale(state, scale, threshold)

Arguments

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

public subroutine core_set_yscale(state, scale, threshold)

Arguments

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

public subroutine core_set_xlim(state, x_min, x_max)

Arguments

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

public subroutine core_set_ylim(state, y_min, y_max)

Arguments

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

public subroutine core_set_line_width(state, width)

Arguments

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

public subroutine core_grid(state, enabled, which, axis, alpha, linestyle)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
logical, intent(in), optional :: enabled
character(len=*), intent(in), optional :: which
character(len=*), intent(in), optional :: axis
real(kind=wp), intent(in), optional :: alpha
character(len=*), intent(in), optional :: linestyle