#5301: In sage-3.3.rc2, doing sage -t -long "devel/sage/sage/plot/plot.py"
causing
a matplotlib GUI window to popup
----------------------+-----------------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: new
Priority: blocker | Milestone: sage-3.3
Component: graphics | Keywords:
----------------------+-----------------------------------------------------
Comment(by was):
I think there are two separate problems:
(1)
{{{
sage: from pylab import *
sage: t = arange(0.0, 2.0, 0.01)
sage: s = sin(2*pi*t)
sage: P = plot(t, s, linewidth=1.0)
[a popup appears]
}}}
(2) then do the following one line after the above:
{{{
sage: savefig('sage.png')
BOOM
ValueError: Unknown file type
}}}
Other remarks:
* This bug occurs exactly the same in the notebook, so is a major show
stopper.
* There is probably a way to get around it, since of course our own
matplotlib-based plotting works fine without popping up GUI's and writing
to files.
I'm guessing the the best fix is to patch setup.py to avoid building any
GUI backends for now, until we can figure out how to patch pylab itself to
not use the GUI backends. I mean, given that one has built any GUI
backend, the above behavior (sans the savefig issue) definitely seems like
appropriate behavior for matplotlib.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5301#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---