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 #91005 is a reply to message #91004] Fri, 22 May 2015 05:19 Go to previous message
Yngvar Larsen is currently offline  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
[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 15:48:53 PDT 2025

Total time taken to generate the page: 0.00270 seconds