ytrans2 Function

public pure function ytrans2(v) result(p)

Map y value in display units to world coords.

For already-scaled view limits, so only log axis's log10 applies.

Arguments

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

y value in st%munit or st%runit.

Return Value real(kind=real64)


Source Code

   pure function ytrans2(v) result(p)
      !! Map y value in display units to world coords.
      !!
      !! For already-scaled view limits, so only log axis's log10 applies.
      ! Arguments
      real(real64), intent(in) :: v
         !! y value in `st%munit` or `st%runit`.
      real(real64) :: p
      if (st%ylog) then
         p = log10(max(v, LOGMIN))
      else
         p = v
      end if
   end function ytrans2