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 #76077 is a reply to message #76076] Wed, 18 May 2011 15:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>
> 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!? :-(

If I try to zoom the plot:

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

It starts out broken, but as soon as I touch the plot
to zoom it, it does the right thing! Weird.

I don't know what to tell you. This looks like a bug with
the plot command to me.

This is one time when, I admit, iPlot produces a better
plot than the Plot command! :-)

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

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: Sat Oct 11 00:25:58 PDT 2025

Total time taken to generate the page: 0.96088 seconds