no graphics server and plot to pdf
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
There isn't any reason why this should be caused by corner. Are you sure that you can use matplotlib with these settings otherwise?
Hello,
the solution is:
matplotlib.use('PDF')
Sorry for the late reply
Cheers