fortplot_figure_core_advanced Module

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.



Subroutines

public subroutine core_scatter(plots, state, plot_count, x, y, s, c, marker, markersize, color, colormap, vmin, vmax, label, show_colorbar, default_color)

Add an efficient scatter plot using a single plot object Properly handles thousands of points without O(n) overhead

Arguments

Type IntentOptional 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)

public subroutine core_hist(plots, state, plot_count, data, bins, density, label, color)

Create a histogram plot

Arguments

Type IntentOptional 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)

public subroutine core_boxplot(plots, state, plot_count, data, position, width, label, show_outliers, horizontal, color, max_plots)

Create a box plot

Arguments

Type IntentOptional 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