#4203: Make a suboption decorator to complement #4201
-------------------------+--------------------------------------------------
 Reporter:  jason        |        Owner:  mhansen   
     Type:  enhancement  |       Status:  new       
 Priority:  major        |    Milestone:  sage-3.1.3
Component:  graphics     |   Resolution:            
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by jason):

 Use case:

 {{{
 @suboption('arrow', color='red', line_style='+')
 @options(vertices=True, edge_labels=True)
 def plot_graph():
     draw vertices
     for each edge:
         draw_arrow(**arrow_options)
     draw edge labels
 }}}
 so the plot_graph function has options arrow_color and arrow_line_style,
 but inside the function, it just sees an arrow_options dictionary
 populated from these.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4203#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to