Re: Plot bug or another "strange feature" ? [message #19976] |
Tue, 16 May 2000 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Nicolas Decoster (Nicolas.Decoster@Noveltis.fr) writes:
> A solution to get the "beautifull" line is just:
>
> IDL> plot, s-min(s), /ynozero
>
> But doing so the y axis labels are wrong. And I thought IDL was clever
> enough to handle this properly. In fact this is my main error: I'm
> excepting too much from IDL. :-)
Well, you will have to fix your axis labels. Perhaps a
YTICKFORMAT function that adds the offset back in.
The thing about IDL is that just when you've lowered
your expectations enough, IDL turns around and does
something fantastic with no effort at all. This makes
your expectations rise again, etc. I try to practice
the Buddhist attitude of "no expectations". When I
manage to do it correctly I find myself in a state
of constant surprise, no matter what happens. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Plot bug or another "strange feature" ? [message #19977 is a reply to message #19976] |
Tue, 16 May 2000 00:00  |
Nicolas Decoster
Messages: 34 Registered: March 2000
|
Member |
|
|
David Fanning wrote:
>
> Nicolas Decoster (Nicolas.Decoster@Noveltis.fr) writes:
>
>> Does anybody notice and, eventually, know how to handle this "strange
>> feature" of the plot procedure ?
>>
>> IDL> s = indgen(1000) + 1000000000
>> IDL> plot, s, /ynozero
>>
>> The plot is not a clean line joining down-left and up-right corners, but
>> an ugly stairway...
>>
>> Perhaps I missed the holy keyword...
>
> No, I think you are just applying analog thinking to
> a digital solution. :-)
>
> Cheers,
>
> David
>
> P.S. Perhaps a scaling factor to "spread" these
> values out some. :-)
>
A solution to get the "beautifull" line is just:
IDL> plot, s-min(s), /ynozero
But doing so the y axis labels are wrong. And I thought IDL was clever
enough to handle this properly. In fact this is my main error: I'm
excepting too much from IDL. :-)
Later.
Nicolas.
--
T�l. : 00 (33) 5 62 88 11 16
Fax : 00 (33) 5 62 88 11 12
Nicolas.Decoster@Noveltis.fr
Noveltis
Parc Technologique du Canal
2, avenue de l'Europe
31520 Ramonville Saint Agne - France
|
|
|
Re: Plot bug or another "strange feature" ? [message #19979 is a reply to message #19976] |
Tue, 16 May 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Nicolas Decoster (Nicolas.Decoster@Noveltis.fr) writes:
> Does anybody notice and, eventually, know how to handle this "strange
> feature" of the plot procedure ?
>
> IDL> s = indgen(1000) + 1000000000
> IDL> plot, s, /ynozero
>
> The plot is not a clean line joining down-left and up-right corners, but
> an ugly stairway...
>
> Perhaps I missed the holy keyword...
No, I think you are just applying analog thinking to
a digital solution. :-)
Cheers,
David
P.S. Perhaps a scaling factor to "spread" these
values out some. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|