Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt4Agg + PySide fails to open a plot on linux64 (CentOS-5,6) #1901

Closed
taldcroft opened this issue Apr 12, 2013 · 3 comments
Closed

Qt4Agg + PySide fails to open a plot on linux64 (CentOS-5,6) #1901

taldcroft opened this issue Apr 12, 2013 · 3 comments

Comments

@taldcroft
Copy link

I did the following on CentOS-5 and CentOS-6 machines, using the Anaconda 1.4.0 64-bit distribution:

import matplotlib
matplotlib.use('Qt4Agg')
matplotlib.rcParams['backend.qt4']='PySide'
from matplotlib import pyplot
pyplot.plot()
pyplot.show()
pyplot.savefig('test.png')

This runs without error but no plot window appears. The test.png file does show the expected plot. I'm not sure if this is a matplotlib issue or a problem with Anaconda. Unfortunately I don't have PySide easily available to test without using Anaconda

@taldcroft
Copy link
Author

Inspired by https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/Pms2dsNI0dw, I discovered that setting backend.qt4 in my matplotlibrc makes things work as long as I start ipython with --pylab. But still no joy with the original script if I do not start with --pylab. I'm now using Anaconda 1.5.

@tacaswell
Copy link
Member

I can not reproduce this. If this is still a problem, please re-open.

Also, try setting the rcParams values before calling use.

@taldcroft
Copy link
Author

I confirm on the same linux system that there is no problem now with Matplotlib 1.3.0 and Anaconda 1.7.0. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants