dfm / dfm/corner.py

no graphics server and plot to pdf

Open
#97 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
576
Forks
234
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported hang with corner.corner in the described Python 2.7 cluster environment, including matplotlib.use('Agg') and PDF output. Compare it with the user's working Python 3 setup and determine whether the no-graphics-device configuration or version difference causes the hang; done means identifying a reproducible cause and documenting a working configuration or confirmed fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.