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   |
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...)
|
|
|