sanger-pathogens / Roary

Rapid large-scale prokaryote pan genome analysis
http://sanger-pathogens.github.io/Roary
Other
315 stars 190 forks source link

roary_plots.py - PDF heatmap blurs edges where png does not #575

Open alanbeavan opened 2 years ago

alanbeavan commented 2 years ago

Hello,

I am using the program roary_plots.py with a modified matrix inclding only a few genes that I'm interested in. This means that each gene can be clearly seen in the heatmap. When I run roary_plots.py with the default --format png I get a nice crisp boundary between each gene (column) in the heatmap. However, when I run with the argument --format pdf, the boundaries between the columns in the heatmap become blurred, like some artifical smoothing is being implemented.

I've attached the figures generated. Presumiably the PDF figure is not as inteneded. Is there any way around this?

Cheers, Alan pangenome_matrix.pdf pangenome_matrix

alanbeavan commented 2 years ago

Huh, interestingly, when you look at the attached pdf, it seems right but here is a screenshot of the file before uploaded. Perhaps this is not an issue with this program but with the macos pdf viewer Screen Shot 2022-07-06 at 10 56 53 AM