#14798: Export graphics objects to PGF/TikZ
---------------------------+------------------------------------------------
   Reporter:  etn40ff      |             Owner:  jason, was                    
       Type:  enhancement  |            Status:  new                           
   Priority:  minor        |         Milestone:  sage-5.12                     
  Component:  graphics     |          Keywords:  matplotlib, plot, TikZ, days49
Work issues:               |   Report Upstream:  N/A                           
  Reviewers:               |           Authors:  Salvatore Stella              
  Merged in:               |      Dependencies:                                
   Stopgaps:               |  
---------------------------+------------------------------------------------
 This patch allows  to produce PGF/TikZ output than can than be included in
 LaTeX documents. It is based on the new pgf backend included in
 matplotlib-1.2+.

 The backend still has some issues that cripple this patch:
 * the first time that it is run it produce this warning:

 sage: line([(0,0), (1,1)],axes=False).save("/tmp/sage.pgf")
 /opt/sage/sage-5.10.rc2/local/lib/python2.7/site-
 packages/matplotlib/tight_bbox.py:55: UserWarning: bbox_inches option for
 pgf backend is not implemented yet.
 "implemented yet." % (format))

 * closing sage after using save() give this other error:

 Exception AttributeError: "'NoneType' object has no attribute 'isdir'" in
 <bound method LatexManager.__del__ of
 <matplotlib.backends.backend_pgf.LatexManager instance at 0x7d375a8>>
 ignored

 * finally not all the graphics primitives can be plotted at the moment:
 printing some text() will trigger
 RuntimeError: Cannot get window extent w/o renderer

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14798>
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/groups/opt_out.


Reply via email to