Re: Theie is a small problem about HISTOPLOT in Coyote's libraries [message #68273] |
Fri, 16 October 2009 10:20 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
duxiyu@gmail.com writes:
> On IDL 7.1.1 under Windows, there seems to be a small problem about
> the procedure HISTOPLOT.
>
> For example,
> Histoplot, Dist(256), xrange=[0, 187]
> Histoplot, Dist(256), xrange=[0, 188]
>
> The figures are both wrong and very different.
> I don't know why these errors happen.
Well, I have to admit, I am pretty much at a complete
loss as to why this happens. I use the Plot command
to set up a plot coordinate system. I use the same
range variables for the Plot command in both the
correct and incorrect case. But if the XRANGE keyword
is set on that plot command (via keyword inheritance,
in this case), the the !Y.S system variable (which
provides Y scaling) is completely screwed up. Why
setting the XRANGE keyword would affect the Y axis like
this is a complete mystery to me.
Perhaps we have discovered a deep bug in the IDL
code!
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Theie is a small problem about HISTOPLOT in Coyote's libraries [message #68274 is a reply to message #68273] |
Fri, 16 October 2009 09:52  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
duxiyu@gmail.com writes:
> On IDL 7.1.1 under Windows, there seems to be a small problem about
> the procedure HISTOPLOT.
>
> For example,
> Histoplot, Dist(256), xrange=[0, 187]
> Histoplot, Dist(256), xrange=[0, 188]
>
> The figures are both wrong and very different.
> I don't know why these errors happen.
Me, either, but I think this is a documentation issue.
The text should have read:
The user may also enter any other keywords suitable
for the PLOT and POLYFILL commands in IDL, except those
that screw the plot up completely.
You might try this, though:
Histoplot, dist(256), mininput=0, maxinput=187
I'll look into the problem, but I'm at a Starbuck's
drinking a latte and reading my high school yearbook
to see if I can figure out who all those old people
I met last night really are. :-(
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Theie is a small problem about HISTOPLOT in Coyote's libraries [message #68275 is a reply to message #68274] |
Fri, 16 October 2009 09:09  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
>
> I think so, too.
> But it does not appear to inlfuence this problem whether the binsize
> is set.
>
> Histoplot, Dist(256), binsize=5, xrange=[0, 191]
> Histoplot, Dist(256), binsize=5, xrange=[0, 192]
> There is still the porblem about the range of X and Y axis.
>
> jdu
what makes you believe it is erroneous? ... I don't see anything
unusual, though I am on 7.0.8.
Also, you might not have the last version of histoplot... it requires
the binsize to be of the same type as the data, so 5.0
Jean
|
|
|
Re: Theie is a small problem about HISTOPLOT in Coyote's libraries [message #68276 is a reply to message #68275] |
Fri, 16 October 2009 08:28  |
duxiyu@gmail.com
Messages: 88 Registered: March 2007
|
Member |
|
|
On Oct 16, 4:14 pm, Paolo <pgri...@gmail.com> wrote:
> On Oct 16, 9:18 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
>
>> Hi, erveryone.
>
>> On IDL 7.1.1 under Windows, there seems to be a small problem about
>> the procedure HISTOPLOT.
>
>> For example,
>> Histoplot, Dist(256), xrange=[0, 187]
>> Histoplot, Dist(256), xrange=[0, 188]
>
>> The figures are both wrong and very different.
>> I don't know why these errors happen.
>
> It's not a good idea to plot a histogram
> without specifying the bins! Please do so
> and you'll save yourself a lot of problems!
>
> Ciao,
> Paolo
>
>
>
>> Best regards,
>> jdu
>
>
I think so, too.
But it does not appear to inlfuence this problem whether the binsize
is set.
Histoplot, Dist(256), binsize=5, xrange=[0, 191]
Histoplot, Dist(256), binsize=5, xrange=[0, 192]
There is still the porblem about the range of X and Y axis.
jdu
|
|
|
Re: Theie is a small problem about HISTOPLOT in Coyote's libraries [message #68279 is a reply to message #68276] |
Fri, 16 October 2009 07:14  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
On Oct 16, 9:18 am, "dux...@gmail.com" <dux...@gmail.com> wrote:
> Hi, erveryone.
>
> On IDL 7.1.1 under Windows, there seems to be a small problem about
> the procedure HISTOPLOT.
>
> For example,
> Histoplot, Dist(256), xrange=[0, 187]
> Histoplot, Dist(256), xrange=[0, 188]
>
> The figures are both wrong and very different.
> I don't know why these errors happen.
It's not a good idea to plot a histogram
without specifying the bins! Please do so
and you'll save yourself a lot of problems!
Ciao,
Paolo
>
> Best regards,
> jdu
|
|
|