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

Home » Public Forums » archive » Re: cgHistoplot issue
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: cgHistoplot issue [message #76079 is a reply to message #76078] Wed, 18 May 2011 15:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JBT writes:

> Just report one bug of cgHistoplot.
>
> When setting a xrange to cgHistoplot, it automatically changes the yrange too, which is not supposed to happen. You can repeat the problem with the following code.
>
> data = randomu(5L, 200)*20.
> cgHistoplot, data, BINSIZE=1.0
> cgHistoplot, data, BINSIZE=1.0, xr = [0, 15]
>
> The first two lines were actually copied from idlcoyote.com. And you can see the problem after running the third line.

Humm. This turns out to be a property of the PLOT
command that, frankly, I don't understand right
at the moment. Consider this:

IDL> x = [-0.96062616, 21.975719]
IDL> y = [0,14.7]
IDL> plot, x, y

But, now set the XRANGE:

IDL> plot, x, y, xrange=[0,15]

What do you make of that!? :-(

Cheers,

David




--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 7.1 to 8.1, workspace migration
Next Topic: Re: log scale colorbar in IDL 8.0

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

Current Time: Fri Oct 10 10:35:34 PDT 2025

Total time taken to generate the page: 0.74768 seconds