Home »
Public Forums »
archive »
Looking for more elegant plot scaling...
Looking for more elegant plot scaling... [message #76658] |
Fri, 17 June 2011 22:16 |
Balt
Messages: 16 Registered: May 2010
|
Junior Member |
|
|
Hi all,
I'm OPLOTting 3 curves on a fourth one. Is there a more elegant way to
scale a plot to YRANGE=[maxy,miny] than this:
; get the y max for the plots
maxy = MAX(temp_obsdata)
IF MAX(splined_wvrdata) GT maxy THEN maxy = MAX(splined_wvrdata)
IF MAX(residuals) GT maxy THEN maxy = MAX(residuals)
IF MAX(interp_obsdata) GT maxy THEN maxy = MAX(interp_obsdata)
miny = MIN(temp_obsdata)
IF MIN(splined_wvrdata) LT miny THEN miny = MIN(splined_wvrdata)
IF MIN(residuals) LT miny THEN miny = MIN(residuals)
IF MIN(interp_obsdata) LT miny THEN miny = MIN(interp_obsdata)
Maybe something a bit more C macro-ish... ?
Cheers
- Balt
|
|
|
Current Time: Fri Oct 10 04:50:21 PDT 2025
Total time taken to generate the page: 0.87987 seconds