set_view Subroutine

private subroutine set_view(v)

Restore view from view history.

Arguments

Type IntentOptional Attributes Name
type(view_t), intent(in) :: v

View to restore.


Source Code

   subroutine set_view(v)
      !! Restore view from view history.
      ! Arguments
      type(view_t), intent(in) :: v
         !! View to restore.
      real(real64) :: fx
      fx = merge(UFAC(unit_id(st%tunit)), 1.d0, st%xaxis == 'time')
      st%xmin = v%lim(1)/fx; st%xmax = v%lim(2)/fx
      st%ymin = v%lim(3)/yscale(); st%ymax = v%lim(4)/yscale()
      st%xauto = v%xauto; st%yauto = v%yauto
   end subroutine set_view