corner.py icon indicating copy to clipboard operation
corner.py copied to clipboard

no graphics server and plot to pdf

Open pilchat opened this issue 8 years ago • 2 comments

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 avatar Apr 21 '17 17:04 pilchat

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

dfm avatar Apr 24 '17 17:04 dfm

Hello,

the solution is:

matplotlib.use('PDF')

Sorry for the late reply

Cheers

pilchat avatar Sep 05 '17 15:09 pilchat