-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] heatmap blurry when saved as pdf (macOS) #4840
Comments
If you view the result with |
Thanks for your help! Also related, the heatmaps will look blurred in presentations with Powerpoint or Apple's Keynote (at least on my system), as they probably use a similar or identical rendering as in Previews. Also one cannot use these heatmaps in publications as they may look blurred to any person opening them on macOS. I think this is quite a limitation? |
That's because in However, the problem only occurs in Apple's |
Ok I see, thank you for the explanation! Quite annoying though that Preview uses such a default.. but maybe they have their reasons too. |
@BeastyBlacksmith : So should we use an inefficient and incorrect representation for heatmaps simply because one(!) system/viewer does not render the resulting PDF correctly? In addition, when rendering with filled rectangles, anti-aliasing effects occur that you actually do not want. BTW: I have added a workaround for Apple's Preview (in the GR development version) which can be activated using the |
I don't think so. Having a documented workaround for people who do care would be welcome. |
I was just wondering because it is labeled as a bug in GR. |
Heatmaps created by
Plots.jl
are blurred when saved as pdf on my system (recent Julia, Plots, GR versions; macOS). They look fine in VScode and also when saved as png (see MWE and images below).I think something is wrong with vector graphics interpolation and subsequent display under macOS. I can do the same heatmap with
CairoMakie.jl
and it is saved and displayed correctly. I would like to stay withPlots.jl
, so any help/fix really appreciated.MWE
Screenshot of the saved pdf (what I "see" on my system):
the pdf itself
the png
Backends
This bug occurs on
Versions
Plots v1.39.0
GR v0.72.10
Julia Version 1.9.1
Commit 147bdf428cd (2023-06-07 08:27 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin22.4.0)
CPU: 8 × Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
Threads: 4 on 8 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS = 4
DYLD_FALLBACK_LIBRARY_PATH =
The text was updated successfully, but these errors were encountered: