Subplot management functionality for figure_t
Extracted from fortplot_figure_core to meet QADS size limits. Provides grid-based subplot creation and management.
Get the number of plots in a specific subplot
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(subplot_data_t), | intent(in) | :: | subplots_array(:,:) | |||
integer, | intent(in) | :: | subplot_rows | |||
integer, | intent(in) | :: | subplot_cols | |||
integer, | intent(in) | :: | row | |||
integer, | intent(in) | :: | col |
Get the title for a specific subplot
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(subplot_data_t), | intent(in) | :: | subplots_array(:,:) | |||
integer, | intent(in) | :: | subplot_rows | |||
integer, | intent(in) | :: | subplot_cols | |||
integer, | intent(in) | :: | row | |||
integer, | intent(in) | :: | col |
Create a grid of subplots
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(subplot_data_t), | intent(inout), | allocatable | :: | subplots_array(:,:) | ||
integer, | intent(out) | :: | subplot_rows | |||
integer, | intent(out) | :: | subplot_cols | |||
integer, | intent(in) | :: | nrows | |||
integer, | intent(in) | :: | ncols | |||
logical, | intent(out) | :: | subplot_active |
Add a plot to a specific subplot
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(subplot_data_t), | intent(inout) | :: | subplots_array(:,:) | |||
integer, | intent(in) | :: | subplot_rows | |||
integer, | intent(in) | :: | subplot_cols | |||
integer, | intent(in) | :: | row | |||
integer, | intent(in) | :: | col | |||
real(kind=wp), | intent(in) | :: | x(:) | |||
real(kind=wp), | intent(in) | :: | y(:) | |||
character(len=*), | intent(in), | optional | :: | label | ||
character(len=*), | intent(in), | optional | :: | linestyle | ||
real(kind=wp), | intent(in), | optional | :: | color(3) | ||
real(kind=wp), | intent(in) | :: | default_colors(:,:) | |||
integer, | intent(in) | :: | max_colors |
Set the title for a specific subplot
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(subplot_data_t), | intent(inout) | :: | subplots_array(:,:) | |||
integer, | intent(in) | :: | subplot_rows | |||
integer, | intent(in) | :: | subplot_cols | |||
integer, | intent(in) | :: | row | |||
integer, | intent(in) | :: | col | |||
character(len=*), | intent(in) | :: | title |
Set the x-axis label for a specific subplot
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(subplot_data_t), | intent(inout) | :: | subplots_array(:,:) | |||
integer, | intent(in) | :: | subplot_rows | |||
integer, | intent(in) | :: | subplot_cols | |||
integer, | intent(in) | :: | row | |||
integer, | intent(in) | :: | col | |||
character(len=*), | intent(in) | :: | xlabel |
Set the y-axis label for a specific subplot
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(subplot_data_t), | intent(inout) | :: | subplots_array(:,:) | |||
integer, | intent(in) | :: | subplot_rows | |||
integer, | intent(in) | :: | subplot_cols | |||
integer, | intent(in) | :: | row | |||
integer, | intent(in) | :: | col | |||
character(len=*), | intent(in) | :: | ylabel |