inv_x Function

public pure function inv_x(w) result(v)

Map world x coord back to display units.

Inverse of xtrans; exponent clamped to +-300 to stay in real64 range.

Arguments

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

World x coordinate.

Return Value real(kind=real64)


Source Code

   pure function inv_x(w) result(v)
      !! Map world x coord back to display units.
      !!
      !! Inverse of `xtrans`; exponent clamped to +-300 to stay in real64 range.
      ! Arguments
      real(real64), intent(in) :: w
         !! World x coordinate.
      real(real64) :: v
      if (st%xlog) then
         v = 10.d0**max(min(w, 300.d0), -300.d0)
      else
         v = w + xoff
      end if
   end function inv_x