dfm / dfm/corner.py

Stripy hist2d when saved to pdf

Open
#261 0 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

Somehow the corner plots recently (for me, not sure since when) end up with stripes in them in areas of low point density when I save the fig to pdf (right panel in image) but they're fine when I save to png (left panel on image). This is possibly a backend issue with matplotlib, but I thought I'd raise an issue here to (1) help people who run into this problem; and (2) in case this is something specific to this code + matplotlib as opposed to the latter only.

image

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

Reproduce the reported corner plot with a low-density hist2d region, saving the same figure to PDF and PNG. Compare the rendering across matplotlib backends to determine whether the stripes are specific to corner.py or to matplotlib; done means identifying the source and documenting or fixing the PDF output.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.