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.
Setup or change the figure backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(figure_state_t), | intent(inout) | :: | state | |||
| character(len=*), | intent(in) | :: | backend_name |
Configure figure dimensions
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(figure_state_t), | intent(inout) | :: | state | |||
| integer, | intent(in), | optional | :: | width | ||
| integer, | intent(in), | optional | :: | height |
Set figure labels
| Type | Intent | Optional | 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 |
Set axis scale types
| Type | Intent | Optional | 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 |
Set axis limits
| Type | Intent | Optional | 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 |