fplot_core_routines Module



Contents


Functions

public pure function linspace(start, finish, npts) result(x)

Constructs a linearly spaced array.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: start

The first value in the array.

real(kind=real64), intent(in) :: finish

The last value in the array.

integer(kind=int32), intent(in) :: npts

The number of values in the array.

Return Value real(kind=real64), allocatable, dimension(:)

The resulting array.

public pure function logspace(start, finish, npts) result(x)

Construcst a logarithmically spaced array.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: start

The exponent of the first value in the array.

real(kind=real64), intent(in) :: finish

The exponent of the final value in the array.

integer(kind=int32), intent(in) :: npts

The number of values in the array.

Return Value real(kind=real64), allocatable, dimension(:)

The resulting array.

public pure function meshgrid(x, y) result(xy)

Constructs two matrices (X and Y) from x and y data arrays.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

An M-element array of x data points.

real(kind=real64), intent(in), dimension(:) :: y

An N-element array of y data points.

Return Value real(kind=real64), allocatable, dimension(:,:,:)

An N-by-M-by-2 array containing the x data matrix on the first page of the array, and the y data matrix on the second page.