#12214: polygon documentation in error
-----------------------------------+----------------------------------------
   Reporter:  kcrisman             |          Owner:  jason, was 
       Type:  defect               |         Status:  needs_work 
   Priority:  minor                |      Milestone:  sage-4.8   
  Component:  graphics             |       Keywords:  beginner   
Work_issues:                       |       Upstream:  N/A        
   Reviewer:  Karl-Dieter Crisman  |         Author:  Kenny Smith
     Merged:                       |   Dependencies:             
-----------------------------------+----------------------------------------

Comment(by kcrisman):

 This is really weird.  Apparently the resetting of options actually
 ''does'' work!  But...
 {{{

 sage: polygon2d.options
 {'alpha': 1, 'legend_label': None, 'rgbcolor': (0, 0, 1), 'thickness': 0}
 sage: P = polygon([[1,2], [5,6], [5,0]]); P # looks blue
 sage: polygon2d.options['rgbcolor']=(1,0,0)
 sage: P = polygon([[1,2], [5,6], [5,0]]); P # looks red
 sage: polygon2d.options
 {'alpha': 1, 'legend_label': None, 'rgbcolor': (1, 0, 0), 'thickness': 0}
 sage: polygon2d.defaults()
 {'alpha': 1, 'legend_label': None, 'rgbcolor': (0, 0, 1), 'thickness': 0}
 sage: polygon2d.reset()
 sage: polygon2d.options
 {'alpha': 1, 'legend_label': None, 'rgbcolor': (1, 0, 0), 'thickness': 0}
 sage: P = polygon([[1,2], [5,6], [5,0]]); P # looks blue again like it
 should
 }}}
 But for some reason the `options` never changed.

 I've asked about this on [http://groups.google.com/group/sage-
 devel/browse_thread/thread/3a4aa8c203c36c52 sage-devel].  But in any case
 if that doesn't work, it is also that way on disk and others (I've
 checked), so that wouldn't hold things up on this.

 Anyway, that means we just have to change to `polygon2d.reset()` and
 `polygon3d.reset()`.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12214#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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