fortplot_figure_scatter Module

Scatter plot implementation module

Provides efficient scatter plot functionality following SOLID principles. Uses single plot object for performance, not O(n) individual points.



Subroutines

public subroutine add_scatter_plot(plots, plot_count, x, y, s, c, marker, markersize, color, colormap, alpha, edgecolor, facecolor, linewidth, vmin, vmax, label, show_colorbar, default_color)

Add a single efficient scatter plot object Properly handles thousands of points with single plot object

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(inout), allocatable :: plots(:)
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 :: alpha
real(kind=wp), intent(in), optional :: edgecolor(3)
real(kind=wp), intent(in), optional :: facecolor(3)
real(kind=wp), intent(in), optional :: linewidth
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), optional :: default_color(3)