Re: the sky is falling down again [message #52367 is a reply to message #52359] |
Tue, 30 January 2007 08:28   |
news.qwest.net
Messages: 137 Registered: September 2005
|
Senior Member |
|
|
"Reimar Bauer" <R.Bauer@fz-juelich.de> wrote in message
news:epngnc$f9fd$1@zam602.zam.kfa-juelich.de...
> Hi all
>
> here is another example which is very funny if you see it the first time
>
> a=indgen(10)*1D-7
> b=a
> plot,a,b,psym=1
> oplot,[0,10],[0,10]
I am not sure what point you are going after, but this seems
that it is plotting indgen*10^(-7). Is that your intent?
Or are you pointing out that the line from 0, to 10 when plotted
on the scale 10^-7 is not colinear with the points.
I think the extrapolation necessary to plot from 0, 10
when your axis ranges from 0 to 9*10^(-7) is so huge
(in the plot coordinates) that some roundoff error will
occur, and hence the lines won't line up exactly.
I suggest:
oplot,[0d,10d^(-6)],[0d,10d^(-6)]
that puts the line correctly (i think)
Cheers,
bob
|
|
|