Thanks!
Yes, with the new package installed (with working backend) pylab/matplotlib
again works the way I expect it to.
--
[intrepid] No output in ipython because because of wrong default backend
https://bugs.launchpad.net/bugs/278764
You received this bug notification because you are a member
@joosteto: What you are seeing is the correct behavior, since the
examples are designed to be interactive examples, and when no GUI
backend is specified, there's not much matplotlib can do. The warning
is not displayed in this case, because scripts that want to output a
file usually have both
For some reason I thought I was subscribed to this bug but I wasn't. So
as the guy who reverted the backend from GTKAgg to the upstream default
(Agg) I have to admit that I didn't fully understand that Agg wasn't a
GUI backend. I've always used GTKAgg, so my bad there.
What I was trying to get
Fantastic! Thank you!
Longer term, I think the metapackage idea has some promise. An
alternative might also be for matplotlib to be more dynamic at startup
time when selecting a backend. For example, we could have an Auto
backend setting, that would select from Qt, Gtk, Tk, Cocoa etc. based on
This bug was fixed in the package matplotlib - 0.98.3-4ubuntu1
---
matplotlib (0.98.3-4ubuntu1) intrepid; urgency=low
* Merge from Debian unstable, remaining changes:
- debian/control
+ replace wxgtk2.6 with wxgtk2.8
+ add python-pkg-resources dependency
*
I just tried the patch by Mike Droettboom.
It indeed does show a warning if I run python in the 'normal python
console.
But if I run a file like the one below, I don't get any output nor a warning.
matplotlib in this way does seem to be broken if the default install doens't
produce output for
Since python-matplotlib pulls python-tk as dependency, I do not understand why
TkAgg can't be the default.
Its much better than the current situation, where it just feels broken.
--
[intrepid] No output in ipython because because of wrong default backend
https://bugs.launchpad.net/bugs/278764
Here's a better patch that will only warn when show() is run directly
from the python or ipython consoles.
** Attachment added: backends.__init__.py.patch
http://launchpadlibrarian.net/18364323/backends.__init__.py.patch
--
[intrepid] No output in ipython because because of wrong default
(I'm an upstream developer).
Agg is the upstream default *only* if none of the GUI backends are
installed (pygtk, PyQt, wxPython, or Tkinter). It's really a failsafe
case, not a default.
I would suggest making python-tk a hard dependency and setting TkAgg as
the default.
To address Joerg's
** Changed in: matplotlib (Ubuntu)
Status: New = Confirmed
--
[intrepid] No output in ipython because because of wrong default backend
https://bugs.launchpad.net/bugs/278764
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
Agg as an default doesn't even work in a python (read: normal $ python
shell) interactive session. I use TkAgg in the moment.
--
[intrepid] No output in ipython because because of wrong default backend
https://bugs.launchpad.net/bugs/278764
You received this bug notification because you are a
Attached a patch to display warning when user calls show() with non-GUI
backend. This addresses Joerg's difficulty -- that it's hard to know
what's wrong when matplotlib is mis-configured to not show a window.
This patch can be considered optional. The real bug here is that
matplotlib is
Ok, I understand.
But ipython -pylab should just work, or at least state prominently
that you have to change the backend. A (not so linux adept) co-worker of
mine dropped intrepid and installed hardy because of this. It took me
15 min to understand what's going on -- it did not feel ubuntu when
It was changed to go back to the upstream default. GTKAgg is also not
DE-neutral so brings in a lot of dependencies by-default for KDE users,
and also had some issues so it was decided to use the matplotlib
default. People can easily change the backend so we're just trying to
get a decent default.
14 matches
Mail list logo