kipp_autoscale Subroutine

public subroutine kipp_autoscale()

Reset auto view limits from data.

Only axes flagged by st%xauto, st%yauto. x spans all model strips; y spans centre to largest outer boundary, or four decades below it on log axis.

Arguments

None

Source Code

   subroutine kipp_autoscale()
      !! Reset auto view limits from data.
      !!
      !! Only axes flagged by `st%xauto`, `st%yauto`. x spans all model strips; y spans centre to
      !! largest outer boundary, or four decades below it on log axis.
      if (st%xauto) then
         st%xmin = xedge(1)
         st%xmax = xedge(nmodels + 1)
      end if
      if (st%yauto) then
         st%ymin = 0.d0
         st%ymax = maxval(ystar)/yscale()
         if (st%ylog) st%ymin = st%ymax*1.d-4
      end if
   end subroutine kipp_autoscale