fortplot_figure_quiver Module

Quiver plot (discrete vector arrows) functionality module

Single Responsibility: Handle quiver plot creation for discrete vector fields Provides arrow visualization at grid points showing direction and magnitude



Functions

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

Validate quiver input arrays have matching dimensions

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 quiver_figure(plots, state, plot_count, x, y, u, v, scale, color, width, headwidth, headlength, units)

Add quiver plot to figure Creates discrete vector arrows at (x,y) positions with (u,v) directions

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 :: scale
real(kind=wp), intent(in), optional :: color(3)
real(kind=wp), intent(in), optional :: width
real(kind=wp), intent(in), optional :: headwidth
real(kind=wp), intent(in), optional :: headlength
character(len=*), intent(in), optional :: units