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

Home » Public Forums » archive » line graph problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: line graph problems [message #24366 is a reply to message #24286] Mon, 26 March 2001 10:23 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Paul van Delst wrote:
>
> Paul van Delst wrote:
>>
>> maxval = ABS( MIN( xdata ) ) > MAX( xdata )
> ^
> oops. Missing ")" above in previous post
>

This line (the ">" to be exact) gave me another idea:

Since you can/should explicitely specify your axis labels with the
beforementioned ESRG routine anyway, you could do something like:

labels = [ string(findgen(6),format='(f6.1)'),
string(max(data),format='(f20.1)') ]
labels = StrTrim(labels,2)
axgap,..., ; use the labels here
oplot, x, data < 8. ; where the value of 8. is just a guess and
would have to be determined.

This wouldn't do exactly what you want, but it would "line up" all
points above the threshold in the upper plot area. So, better, would
be to scale only the data above the gap. E.g.:

tmpdata = data
wbig = Where(data gt 6., cnt) ; assume your threshold is 6
IF cnt GT 0 THEN tmpdata[wbig] = (tmpdata[wbig]/10.)+6.

... or something similar. Hope you get the idea.

Cheers,
Martin


--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Making SAV files
Next Topic: converting to array

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

Current Time: Sat Oct 11 23:36:11 PDT 2025

Total time taken to generate the page: 3.36547 seconds