#12591: same color shows up different in graphics_array
-------------------------------------+-------------------------------------
       Reporter:  dkrenn             |        Owner:  jason, was
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  graphics           |   Resolution:
       Keywords:  graphics_array,    |    Merged in:
  color                              |    Reviewers:
        Authors:  Frédéric Chapoton  |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  u/chapoton/12591   |  0aa089a5e1a800600ef38af6198782db16fabc03
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by kcrisman):

 * status:  needs_review => needs_work


Comment:

 > Note that the legend in the third picture is no longer duplicated, but
 does not look the same:
 > {{{
 > sage: g = circle((0,0),1,rgbcolor='red',fill=True, alpha=0.1,
 legend_label='pink')
 > sage: graphics_array([g,g,g]).show()
 > }}}
 Noted.  I tried getting rid of that last call to `save` and instead doing
 all in the loop, but that didn't work.  Probably we'll need to directly
 import stuff like
 {{{
             from matplotlib.backends.backend_agg import FigureCanvasAgg
             figure.set_canvas(FigureCanvasAgg(figure))
             # this messes up the aspect ratio!
             #figure.canvas.mpl_connect('draw_event', pad_for_tick_labels)

             # tight_layout adjusts the *subplot* parameters so ticks
 aren't cut off, etc.
             figure.tight_layout()

             opts = dict(dpi=dpi, transparent=transparent)
             if fig_tight is True:
                 opts['bbox_inches'] = 'tight'
             if self._bbox_extra_artists:
                 opts['bbox_extra_artists'] = self._bbox_extra_artists

             figure.savefig(filename, **opts)
 }}}
 from the singular graphics object save code.

--
Ticket URL: <http://trac.sagemath.org/ticket/12591#comment:14>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to