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

Home » Public Forums » archive » keyword inheritance in object graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
keyword inheritance in object graphics [message #91820] Wed, 02 September 2015 07:58 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
Dear Folks,

I'm trying to write a wrapper routine that creates an object plot,
overlays some arrows on the plot, and then returns the plot object.
I'd like to use keyword inheritance to provide options for both
plot() and arrow() within my routine. The idea is something like

function arrowplot, x, y, _extra=extra
pl = plot(x, y, _extra = extra)
ndx = [0, 1]
ar = arrow(x[ndx], y[ndx], _extra=extra)
return, pl
end

I assumed that the plot(...) and arrow(...) functions would
each use the keywords they understand and ignore the rest.
Instead, the arrow(...) function throws an error whenever it
encounters an unfamiliar keyword in the extra structure.

Is this correct behavior, or is it a bug? I've tested this
in IDL 8.4.

Many thanks,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Minor obscure error message
Next Topic: MODLAND Tile Calculator in IDL?

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

Current Time: Fri Oct 10 00:08:53 PDT 2025

Total time taken to generate the page: 0.24401 seconds