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

no graphics server and plot to pdf #97

Open
pilchat opened this issue Apr 21, 2017 · 2 comments
Open

no graphics server and plot to pdf #97

pilchat opened this issue Apr 21, 2017 · 2 comments

Comments

@pilchat
Copy link

pilchat commented Apr 21, 2017

Hi,

I'm running a script which invokes corner.corner, and everything goes fine in my local machine (python3).

I'm trying to run the same script in a cluster (python2.7) with no graphics device. To save the plots directly in a pdf file, I use the commands

import matplotlib
matplotlib.use('Agg')

at the beginning of my script. After including these lines, I find that corner.corner hangs.

Can someone tell me why, and how I can solve this? Does it depend on the version of python, or on the absence of a graphics device?

Thanks a lot

@pilchat pilchat changed the title no graphics server and plot top to pdf no graphics server and plot to pdf Apr 21, 2017
@dfm
Copy link
Owner

dfm commented Apr 24, 2017

There isn't any reason why this should be caused by corner. Are you sure that you can use matplotlib with these settings otherwise?

@pilchat
Copy link
Author

pilchat commented Sep 5, 2017

Hello,

the solution is:

matplotlib.use('PDF')

Sorry for the late reply

Cheers

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