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
Set x-axis label
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=:),
|
intent(inout), |
|
allocatable
|
:: |
xlabel_compat |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
label |
|
Set y-axis label
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=:),
|
intent(inout), |
|
allocatable
|
:: |
ylabel_compat |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
label |
|
Set figure title
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=:),
|
intent(inout), |
|
allocatable
|
:: |
title_compat |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
title |
|
Set x-axis scale type
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
scale |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
threshold |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
base |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
linscale |
|
Set y-axis scale type
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
scale |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
threshold |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
base |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
linscale |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
format |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
format |
|
Set x-axis limits
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
x_min |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
x_max |
|
Set y-axis limits
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
y_min |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
y_max |
|
Set the 3D view angles (degrees) and optional camera distance.
Mirrors matplotlib's Axes3D.view_init(elev, azim).
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
elev |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
azim |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
dist |
|
Set line width for subsequent plots
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
width |
|
Enable/disable and configure grid lines
Arguments
| Type |
Intent | Optional | 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 |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=:),
|
intent(inout), |
|
allocatable
|
:: |
xlabel_compat |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
label |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=:),
|
intent(inout), |
|
allocatable
|
:: |
ylabel_compat |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
label |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=:),
|
intent(inout), |
|
allocatable
|
:: |
title_compat |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
title |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
scale |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
threshold |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
base |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
linscale |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
scale |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
threshold |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
base |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
linscale |
|
Store the text-backend charset: 'ascii' (default), 'unicode', 'auto'
(resolved from the environment at save time), or 'braille'. Unknown
names warn and fall back to 'ascii' (#2060, #2061).
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
charset |
|
Store the text-backend ANSI color mode: 'never' (default), 'ansi16',
'ansi256', 'truecolor', or 'auto' (resolved at output time). Unknown
names warn and fall back to 'never' so escapes never leak (#2062).
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
mode |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
format |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
format |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
x_min |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
x_max |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
elev |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
azim |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
dist |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
y_min |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
y_max |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(figure_state_t),
|
intent(inout) |
|
|
:: |
state |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
width |
|
Arguments
| Type |
Intent | Optional | 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 |
|