fortplot_matplotlib_scatter_utils Module

Utility functions for matplotlib-compatible scatter plots.

Contains helpers for size array construction, linewidth resolution, edgecolor parsing, and style array storage on the figure's plot objects.



Functions

public function effective_linewidth(linewidths, linewidths_scalar) result(lw)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), optional :: linewidths(..)
real(kind=wp), intent(in), optional :: linewidths_scalar

Return Value real(kind=wp)

public function optional_logical(value)

Arguments

Type IntentOptional Attributes Name
logical, intent(in), optional :: value

Return Value logical

public function edgecolors_are_none(edgecolors)

Arguments

Type IntentOptional Attributes Name
class(*), intent(in), optional :: edgecolors(..)

Return Value logical


Subroutines

public subroutine build_scatter_size_array(n, s, s_scalar, s_out)

Build a uniform or per-point size array for scatter markers.

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n
real(kind=wp), intent(in), optional :: s(:)
real(kind=wp), intent(in), optional :: s_scalar
real(kind=wp), intent(out), allocatable :: s_out(:)

public subroutine uniform_edgecolor(n, edgecolors, edge_rgb, has_uniform_edge)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n
class(*), intent(in), optional :: edgecolors(..)
real(kind=wp), intent(out) :: edge_rgb(3)
logical, intent(out) :: has_uniform_edge

public subroutine store_scatter_style_arrays(n, edgecolors, linewidths, no_edges)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n
class(*), intent(in), optional :: edgecolors(..)
real(kind=wp), intent(in), optional :: linewidths(..)
logical, intent(in) :: no_edges