Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Inconsistent plot on macOS #2

Open
yipengsun opened this issue Feb 9, 2023 · 2 comments
Open

Inconsistent plot on macOS #2

yipengsun opened this issue Feb 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@yipengsun
Copy link
Owner

The fit template comparison plots (most of the plot in chap. 8) are generated with matplotlib with the hatch option. Unfortunately the plots are not displayed correctly with the official PDF viewer on macOS (and iOS, iPadOS):

bad_plot_on_mac

whereas the plot is rendered correctly when using a poppler-based renderer on Linux:
normal_plot

The plot also works when using Adobe Acrobat on mac.

@yipengsun yipengsun added the bug Something isn't working label Feb 9, 2023
@yipengsun
Copy link
Owner Author

Possibly related:
matplotlib/matplotlib#12367
umami-hep/puma#144

@yipengsun
Copy link
Owner Author

One way to workaround this might be:

  1. Generate plots in svg format
  2. Convert svg to pdf with inkscape

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant