Advanced plotting operations extracted from fortplot_figure_core
This module contains advanced plotting functionality like scatter plots, histograms, and statistical plots that were moved from the core module to maintain architectural compliance with size limits.
Add an efficient scatter plot using a single plot object Properly handles thousands of points without O(n) overhead
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout), | allocatable | :: | plots(:) | ||
| type(figure_state_t), | intent(inout) | :: | state | |||
| integer, | intent(inout) | :: | plot_count | |||
| real(kind=wp), | intent(in) | :: | x(:) | |||
| real(kind=wp), | intent(in) | :: | y(:) | |||
| real(kind=wp), | intent(in), | optional | :: | s(:) | ||
| real(kind=wp), | intent(in), | optional | :: | c(:) | ||
| character(len=*), | intent(in), | optional | :: | marker | ||
| real(kind=wp), | intent(in), | optional | :: | markersize | ||
| real(kind=wp), | intent(in), | optional | :: | color(3) | ||
| character(len=*), | intent(in), | optional | :: | colormap | ||
| real(kind=wp), | intent(in), | optional | :: | vmin | ||
| real(kind=wp), | intent(in), | optional | :: | vmax | ||
| character(len=*), | intent(in), | optional | :: | label | ||
| logical, | intent(in), | optional | :: | show_colorbar | ||
| real(kind=wp), | intent(in) | :: | default_color(3) | 
Create a histogram plot
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout), | allocatable | :: | plots(:) | ||
| type(figure_state_t), | intent(inout) | :: | state | |||
| integer, | intent(inout) | :: | plot_count | |||
| real(kind=wp), | intent(in) | :: | data(:) | |||
| integer, | intent(in), | optional | :: | bins | ||
| logical, | intent(in), | optional | :: | density | ||
| character(len=*), | intent(in), | optional | :: | label | ||
| real(kind=wp), | intent(in), | optional | :: | color(3) | 
Create a box plot
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_data_t), | intent(inout), | allocatable | :: | plots(:) | ||
| type(figure_state_t), | intent(in) | :: | state | |||
| integer, | intent(inout) | :: | plot_count | |||
| real(kind=wp), | intent(in) | :: | data(:) | |||
| real(kind=wp), | intent(in), | optional | :: | position | ||
| real(kind=wp), | intent(in), | optional | :: | width | ||
| character(len=*), | intent(in), | optional | :: | label | ||
| logical, | intent(in), | optional | :: | show_outliers | ||
| logical, | intent(in), | optional | :: | horizontal | ||
| character(len=*), | intent(in), | optional | :: | color | ||
| integer, | intent(in) | :: | max_plots |