comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Looking for more elegant plot scaling...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Looking for more elegant plot scaling... [message #76658] Fri, 17 June 2011 22:16
Balt is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Venn Diagram in IDL?
Next Topic: Re: wavelet using wv_dwt

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:47:20 PDT 2025

Total time taken to generate the page: 0.00750 seconds