I experienced the same problem on the macosx backend, switched to Qt4Agg and no problems.
import matplotlib
matplotlib.use("Qt4Agg")
-Dave
···
On 1/6/12 10:08 AM, mdroe@...86... wrote:
I suspect this bug is specific to the macosx backend. Can you switch to
another backend and confirm it doesn't happen there? (I can't reproduce
it on Linux).
Mike
Hi, Dave,
I tried the two lines of code you posted, but when I ran the example I mentioned above I got such error:
ImportError: No module named sip
Seems I can’t import any other libs from matplotlib after “matplotlib.use(“Qt4Agg”)”
I’m kind of a newbie, sorry.
Ken
···
On Sat, Jan 7, 2012 at 12:22 AM, David Hoese <dhoese@…287…> wrote:
I experienced the same problem on the macosx backend, switched to Qt4Agg
and no problems.
import matplotlib
matplotlib.use("Qt4Agg")
-Dave
On 1/6/12 10:08 AM, mdroe@…86… wrote:
I suspect this bug is specific to the macosx backend. Can you switch to
another backend and confirm it doesn’t happen there? (I can’t reproduce
it on Linux).
Mike
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don’t need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
–
Mingkui Li
Hi Ken,
You're getting that error because you probably don't have Qt4
installed on your Mac (I do). I’m not sure what backends come with
matplotlib and will work for you (maybe someone here knows). You
can use any of the following:
GTK GTKAgg GTKCairo CocoaAgg FltkAgg
MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template
Like Qt4, some of those may need to be installed. I also have Gtk
installed (never used it before) and “GTKAgg” works for me, but not
“GTK”. It’s also important to know that not all of those backends
are interactive (they don’t all show a window) and the figure must
be saved to a file.
Also make sure that the 2 lines I provided need to be BEFORE any
other matplotlib/pyplot imports. Hope you find something that works
for you, at least until the macosx bug is fixed. I’m not an expert,
sorry.
-Dave
···
On 1/6/12 10:35 AM, Mingkui Li wrote:
Hi, Dave,
I tried the two lines of code you posted, but when I ran the
example I mentioned above I got such error:
ImportError: No module named sip
Seems I can't import any other libs from matplotlib after
“matplotlib.use(“Qt4Agg”)”
I’m kind of a newbie, sorry.
Ken
On Sat, Jan 7, 2012 at 12:22 AM, David > Hoese <dhoese@...287...> > wrote:
I
experienced the same problem on the macosx backend, switched
to Qt4Agg
and no problems.
import matplotlib
matplotlib.use("Qt4Agg")
-Dave
On 1/6/12 10:08 AM, mdroe@...86... wrote:
> I suspect this bug is specific to the macosx backend.
Can you switch to
> another backend and confirm it doesn't happen there?
(I can’t reproduce
> it on Linux).
>
> Mike
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you
don’t need a complex
infrastructure or vast IT resources to deliver seamless,
secure access to
virtual desktops. With this all-in-one solution, easily
deploy virtual
desktops for less than the cost of PCs and save 60% on
VDI infrastructure
costs. Try it free! [http://p.sf.net/sfu/Citrix-VDIinabox](http://p.sf.net/sfu/Citrix-VDIinabox)
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
[https://lists.sourceforge.net/lists/listinfo/matplotlib-users](https://lists.sourceforge.net/lists/listinfo/matplotlib-users)
–
Mingkui Li