You are not logged in.
Pages: 1
Hello I often plot graphics with the combination Ipython + matplotlib (pylab).
However it did never work on Arch Linux and it printed following error message:
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: eglfs, kms, linuxfb, minimal, minimalegl, offscreen, xcb.
Reinstalling the application may fix this problem.After installing libxkbcommon-x11 as suggested here, it finally showed a window, but there isn't anything drawn on it. (Not an empty plot, it's like there were no drawing calls from the application to the window.)
So how do I fix this? Also libxkbcommon-x11 should probably a dependency of python-matplotlib.
Offline
Maybe it does not suit your needs, but did you take a look at spyder?
Offline
Many of the dependencies for matplotlib are optional, as they are only needed for certain backends. Check what optional dependencies you have installed with
pacman -Qi python-matplotlibDo you know what backend you are using? Since you get a Qt related error message, maybe you need the optional dependency python-pyqt4.
Offline
No, I don't need to install python-pyqt4 ipython is using pyqt5
I will try spyder out - but I'd prefer to use ipython - it's what I'm used to ![]()
Offline
To easily interact with your code as you progress, Spyder lets you
Open as many Python and Ipython consoles as you want
Run a whole script or any portion of it from the Editor
Have code completion and automatic link to documentation through the Object Inspector
Execute all consoles in a separate process so they don't block the application
Offline
Ok, mine was previously (a few months ago) working but now I get the same error as you. This is a regression, I suggest filing a bug report against matplotlib. I am using matplotlib directly from a python script so ipython is vindicated.
Offline
OK I tried spyder, but it's a complicated GUI-based application - I don't really need that
[EDIT] Filed bug report here
Last edited by haansn08 (2014-09-21 21:11:33)
Offline
This thread https://bbs.archlinux.org/viewtopic.php?id=186493 describes the same problem. The workaround is to use the qt4agg backend unitl the upstream issue is fixed. The qt4agg backend works on my installation.
Offline
Pages: 1