#10889: make text not give bounding box info if axis_coords is True
-------------------------------+--------------------------------------------
   Reporter:  jason            |       Owner:  jason, was
       Type:  defect           |      Status:  needs_info
   Priority:  major            |   Milestone:  sage-4.7  
  Component:  graphics         |    Keywords:            
     Author:  Jason Grout      |    Upstream:  N/A       
   Reviewer:  Sébastien Labbé  |      Merged:            
Work_issues:                   |  
-------------------------------+--------------------------------------------

Comment(by slabbe):

 OK, I am a little bit mixed up now.

 1. First, `axis_coords=True` is confusing to me. Without documentation, I
 would think that `axis_coords=True` means that the coordinates are
 relative to the axis which is the obvious drawing default. But right now,
 `False` corresponds to the default.

 2.

 > I think it's a bug that using axes coordinates lets you place something
 outside of the axes (or rather, I think it let you place something outside
 of the current axes, and then it maybe adjusted the axes to fit what you
 had??)

 I don't understand the last part of the parenthesis. I think it is a good
 idea to let the user place the object where he wants whatever coordinate
 system he uses. However, I don't know if we should or not adapt the
 bounding box when an object is outside for when `axis_coords=True`.

 3. If we choose not to adapt the bounding box for when `axis_coords=True`,
 then should we add some kind of "behavior is going to change" warnings?

 4. Here is one example. Should `text('A long text', (0.98, 0.98),
 axis_coords=True)` change the bounding box so that the long text be
 completely included?

 5. I think `text('A', (0.5, 2), coordinates='axes')` is a good
 improvement. Do we agree that `coordinates='axes'` is the default? And
 `coordinates='figure'` is for the actual `axis_coords=True`? An other idea
 could be `'absolute'` vs `'relative'`.

 6. Another question I answered myself. As illustrated by the following
 example. The real coordinates are computed only at the end and are
 influenced by other objects being added. The middle keeps being in the
 middle which is a very good thing!

 {{{
 sage: P = point([(100, 100), (200,200)])
 sage: P += text('the middle', (0.5,0.5), axis_coords=True)
 sage: P
 sage: P += point([(0,0)])
 sage: P
 }}}

 7. One last question. If we add the option `'coordinates'`, do we
 deprecate `axis_coords` ?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10889#comment:6>
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