fortplot_quiver_geometry Module

Matplotlib quiver.py: _init, _make_verts and _h_arrows geometry. Arrow widths use display units; explicit scale is an inverse length.



Subroutines

public subroutine prepare_quiver_geometry(plot, bounds, canvas, dpi, xscale, yscale, threshold, lengths, angles, width, data_extent)

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(in) :: plot
real(kind=wp), intent(in) :: bounds(4)
real(kind=wp), intent(in) :: canvas(2)
real(kind=wp), intent(in) :: dpi
character(len=*), intent(in) :: xscale
character(len=*), intent(in) :: yscale
real(kind=wp), intent(in) :: threshold
real(kind=wp), intent(out) :: lengths(:)
real(kind=wp), intent(out) :: angles(:)
real(kind=wp), intent(out) :: width
real(kind=wp), intent(in), optional :: data_extent

public subroutine quiver_arrow_vertices(length, angle, width, headwidth, headlength, pivot, x, y)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: length
real(kind=wp), intent(in) :: angle
real(kind=wp), intent(in) :: width
real(kind=wp), intent(in) :: headwidth
real(kind=wp), intent(in) :: headlength
character(len=*), intent(in) :: pivot
real(kind=wp), intent(out) :: x(8)
real(kind=wp), intent(out) :: y(8)