fortplot_figure_plot_management Module

Figure plot data management module

Single Responsibility: Manage plot data storage and operations Extracted from fortplot_figure_core to improve modularity



Functions

public pure function next_plot_color(state) result(color)

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp), (3)


Subroutines

public subroutine validate_plot_data(x, y, label)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), contiguous :: x(:)
real(kind=wp), intent(in), contiguous :: y(:)
character(len=*), intent(in), optional :: label

public subroutine register_line_plot_data(plots, plot_count, max_plots, x, y, label, linestyle, color, marker)

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(inout) :: plots(:)
integer, intent(inout) :: plot_count
integer, intent(in) :: max_plots
real(kind=wp), intent(in), contiguous :: x(:)
real(kind=wp), intent(in), contiguous :: y(:)
character(len=*), intent(in), optional :: label
character(len=*), intent(in), optional :: linestyle
real(kind=wp), intent(in) :: color(3)
character(len=*), intent(in), optional :: marker

public subroutine add_fill_between_plot_data(plots, plot_count, max_plots, x, upper, lower, mask, color, alpha)

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(inout) :: plots(:)
integer, intent(inout) :: plot_count
integer, intent(in) :: max_plots
real(kind=wp), intent(in), contiguous :: x(:)
real(kind=wp), intent(in), contiguous :: upper(:)
real(kind=wp), intent(in), contiguous :: lower(:)
logical, intent(in), optional :: mask(:)
real(kind=wp), intent(in) :: color(3)
real(kind=wp), intent(in), optional :: alpha

public subroutine update_plot_ydata(plots, plot_count, plot_index, y_new)

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(inout) :: plots(:)
integer, intent(in) :: plot_count
integer, intent(in) :: plot_index
real(kind=wp), intent(in), contiguous :: y_new(:)