#14074: saving fill in eps doesn't work right for some reason
----------------------------+-----------------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-5.7
Component: graphics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------+-----------------------------------------------
Comment (by kcrisman):
My thus far unsuccessful attempt. I always forget ''something'' when
trying to use mpl natively, and this is no exception. I think I just need
a week to memorize the mpl workflow.
{{{
sage: from matplotlib.figure import Figure
sage: figure = Figure()
sage: subplot = figure.add_subplot(111)
sage: import matplotlib.patches as patches
sage: p = patches.Polygon([(1, 2), (2, 3), (3, 2)])
sage: p.set_alpha(float(.1))
sage: p.set_fill(True)
sage: p.set_linewidth(float(10))
sage: p.set_edgecolor((float(0.25), float(0.4), float(0.9)))
sage: subplot.add_patch(p)
sage: from matplotlib.backends.backend_agg import FigureCanvasAgg
sage: figure.set_canvas(FigureCanvasAgg(figure))
sage: figure.savefig('test.png')
}}}
Unfortunately this doesn't work for some reason (empty plot other than
frame). Maybe I added the plot too early.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14074#comment:1>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.