Set x view limits from two world coords, in either order.
Ignores degenerate selections (e.g. double click in place).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | a |
One end of selection. |
||
| real(kind=real64), | intent(in) | :: | b |
Other end of selection. |
subroutine set_xrange_w(a, b) !! Set x view limits from two world coords, in either order. !! !! Ignores degenerate selections (e.g. double click in place). ! 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%xmin = inv_x(lo); st%xmax = inv_x(hi) st%xauto = .false. end subroutine set_xrange_w