project_3d_samples_to_axes Subroutine

public subroutine project_3d_samples_to_axes(x, y, z, x_min, x_max, y_min, y_max, z_min, z_max, azim, elev, dist, width_scale, height_scale, x_out, y_out)

Project 3D samples into the data window using a single shared scale that preserves the projected box aspect ratio (no independent x/y stretch). width_scale/height_scale are the backend pixel scales (pixels per data unit) used to keep the box aspect correct on screen.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), contiguous :: x(:)
real(kind=wp), intent(in), contiguous :: y(:)
real(kind=wp), intent(in), contiguous :: z(:)
real(kind=wp), intent(in) :: x_min
real(kind=wp), intent(in) :: x_max
real(kind=wp), intent(in) :: y_min
real(kind=wp), intent(in) :: y_max
real(kind=wp), intent(in) :: z_min
real(kind=wp), intent(in) :: z_max
real(kind=wp), intent(in) :: azim
real(kind=wp), intent(in) :: elev
real(kind=wp), intent(in) :: dist
real(kind=wp), intent(in) :: width_scale
real(kind=wp), intent(in) :: height_scale
real(kind=wp), intent(out), allocatable :: x_out(:)
real(kind=wp), intent(out), allocatable :: y_out(:)