fortplot_figure_streamlines Module

Figure streamline functionality module

Single Responsibility: Handle streamline plotting functionality Extracted from fortplot_figure_core to improve modularity



Functions

public function streamplot_basic_validation(x, y, u, v) result(is_valid)

Basic validation for streamplot inputs

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x(:)
real(kind=wp), intent(in) :: y(:)
real(kind=wp), intent(in) :: u(:,:)
real(kind=wp), intent(in) :: v(:,:)

Return Value logical


Subroutines

public subroutine clear_streamline_data(streamlines)

Clear streamline data

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(inout), allocatable :: streamlines(:)

public subroutine streamplot_figure(plots, state, plot_count, x, y, u, v, density, color)

Add streamline plot to figure - direct streamline generation

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(inout) :: 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) :: u(:,:)
real(kind=wp), intent(in) :: v(:,:)
real(kind=wp), intent(in), optional :: density
real(kind=wp), intent(in), optional :: color(3)