#260: [with patch, needs review] transparent graphics output
-------------------------+--------------------------------------------------
 Reporter:  was          |       Owner:  was       
     Type:  enhancement  |      Status:  new       
 Priority:  minor        |   Milestone:  sage-4.1.2
Component:  graphics     |    Keywords:            
 Reviewer:               |      Author:            
   Merged:               |  
-------------------------+--------------------------------------------------

Comment(by jason):

 Yes, I'm almost sure that #5448 will necessitate an update (or this will
 necessitate an update of #5448).

 1. I would change the keyword argument to something that is used more in
 Sage (like alpha or opacity) if we are going to have multiple levels of
 transparency.  If it is just a True/False option, then "transparent" seems
 like a fine keyword.

 2. What do you think about using the "transparent" option of savefig, as
 documented here:
 
http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.savefig
 ?

 3. The transparent option of savefig has the following code.  It looks
 like this code not only sets the figure patch, but goes through each axes
 object in the figure and sets the axes patch alpha level.  We should
 probably do the same.

 {{{
  1036         if transparent:
  1037             original_figure_alpha = self.patch.get_alpha()
  1038             self.patch.set_alpha(0.0)
  1039             original_axes_alpha = []
  1040             for ax in self.axes:
  1041                 patch = ax.patch
  1042                 original_axes_alpha.append(patch.get_alpha())
  1043                 patch.set_alpha(0.0)
 }}}

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