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

Home » Public Forums » archive » output from cghistoplot draws outline correctly but the fill is shifted!?
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: output from cghistoplot draws outline correctly but the fill is shifted!? [message #91004 is a reply to message #91003] Thu, 21 May 2015 17:18 Go to previous messageGo to previous message
munka is currently offline  munka
Messages: 36
Registered: December 2009
Member
On Thursday, May 21, 2015 at 3:18:35 PM UTC-7, David Fanning wrote:
> mynameismunka@gmail.com writes:
>
>> ... it works! this fixes it. I played with it a bit and it seems like changing the lower bound causes it to mis-plot. Thanks for the help!
>>
>> Its odd that the *outline* plots properly but the fill doesn't.
>
> Well, XRANGE is not keyword I expected anyone to use, so...
>
> In the outline, I use the XRANGE I calculate for the plot. In the FILL,
> I use the !X.CRANGE value for overplotting. They will be different, I
> guess, if you use the unexpected XRANGE keyword via the always
> troublesome keyword inheritance mechanism.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")


> troublesome keyword inheritance mechanism

Yep...

pro test1,in1,_EXTRA=es
plot,findgen(10),xrange=in1,_EXTRA=es,/xs
end

test1,[2,8],xrange=[1,5]



Q. What would the xrange of the plot be?

A. probably [0,9]


(just kidding, it ends up being [1,5] and throws no errors...)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Run-time error '-5'
Next Topic: 3D point cloud visualization

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

Current Time: Wed Oct 08 17:48:36 PDT 2025

Total time taken to generate the page: 0.00429 seconds