[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: line graph problems
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 [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[