-
Notifications
You must be signed in to change notification settings - Fork 77
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
Solve matplotlib style problem that was making labels non-legible #402
Solve matplotlib style problem that was making labels non-legible #402
Conversation
Hi
|
…/cta-lstchain into solve_backend_problem
Both these solution are not ideal. matplotlib supports context manager for setting styles. Do not set them globally! And don't override user defined styles by setting it back to defaults. This breaks any matplotlib mechanism to set styles outside of code (environment variables, local matplotlibrc, global matplotlibrc). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks any mechanism to set matplotlib options outside of code.
Don't mess with these things, please just fix the underlying issue.
Well, as said, if the problem was indeed ctaplot, I think it is fixed. |
Agreed that this may not be ideal, but at least we need a temporary solution for all the datacheck/calibration plots to be displayed. |
Codecov Report
@@ Coverage Diff @@
## master #402 +/- ##
=======================================
Coverage 41.44% 41.44%
=======================================
Files 76 76
Lines 6143 6143
=======================================
Hits 2546 2546
Misses 3597 3597 Continue to review full report at Codecov.
|
ok, I tested |
Glad this is fixed and sorry for the mess. |
Solution to work out the problem with the matplotlib style/backend that was described in #401. While this is worked out, these lines should force the matplotlib style to the 'default' one, that was working before for all the plotting.