set_yrange_w Subroutine

private subroutine set_yrange_w(a, b)

Set y view limits from two world coords, in either order.

Ignores degenerate selections.

Arguments

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

One end of selection.

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

Other end of selection.


Source Code

   subroutine set_yrange_w(a, b)
      !! Set y view limits from two world coords, in either order.
      !!
      !! Ignores degenerate selections.
      ! Arguments
      real(real64), intent(in) :: a
         !! One end of selection.
      real(real64), intent(in) :: b
         !! Other end of selection.
      real(real64) :: lo, hi
      lo = min(a, b); hi = max(a, b)
      if (hi <= lo) return
      st%ymin = inv_y(lo); st%ymax = inv_y(hi)
      st%yauto = .false.
   end subroutine set_yrange_w