From: David H. <dh...@gm...> - 2012-01-06 16:22:56
|
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, md...@st... 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 |
From: Mingkui Li <ken...@gm...> - 2012-01-06 16:35:10
|
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 <dh...@gm...> 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, md...@st... 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Mingkui Li |
From: David H. <dh...@gm...> - 2012-01-06 16:55:18
|
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 <dh...@gm... > <mailto:dh...@gm...>> 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, md...@st... <mailto:md...@st...> 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 > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > -- > Mingkui Li > |
From: Michael D. <md...@st...> - 2012-01-06 19:40:36
|
I've filed a bug for this here: https://github.com/matplotlib/matplotlib/issues/662 Mike On 01/06/2012 11:55 AM, David Hoese wrote: > 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 <dh...@gm... >> <mailto:dh...@gm...>> 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, md...@st... <mailto:md...@st...> 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 >> Mat...@li... >> <mailto:Mat...@li...> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> >> >> -- >> Mingkui Li >> > > > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |