Re: output from cghistoplot draws outline correctly but the fill is shifted!? [message #91005 is a reply to message #91004] |
Fri, 22 May 2015 05:19  |
Yngvar Larsen
Messages: 134 Registered: January 2010
|
Senior Member |
|
|
On Friday, 22 May 2015 02:18:09 UTC+2, myname...@gmail.com wrote:
> On Thursday, May 21, 2015 at 3:18:35 PM UTC-7, David Fanning wrote:
>> 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...)
You can always explicitly capture the keyword(s) that you want to manually calculate:
pro test1,in1,_EXTRA=es, XRANGE=_not_used_
plot,findgen(10),xrange=in1,_EXTRA=es,/xs
end
Not very pretty, but the advantages of _EXTRA outweigh the disadvantages most of the time, so I can live with it.
--
Yngvar
|
|
|