You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that newer versions of Matplotlib (since 3.0 or 3.1) cause colorbar ticks to be placed incorrectly for plots that are zero everywhere or undefined everywhere
This is probably caused in the normalization of colors in the from the min and max of the data range to the matplotlib color scale.
The text was updated successfully, but these errors were encountered:
This issue is now resolved in 1c7647a. We now test whether or not we are using matplotlib 3.1.1 or an older version, and adjust the tickmark placement accordingly.
I have now pushed commit: f450fe2, which definitively fixes this issue.
The problem was not so much matplotlib 3.1.1 vs. older versions,. Instead, if we use the RdBu colortable (as we do for diff-of-diffs plots, like the one shown above), then we must take care to place the tick in the middle of the colorbar if Ref and/or Dev is zero or undefined everywhere. I modified the code in the if all_zero or all_undefined blocks accordingly.
Describe the bug
It seems that newer versions of Matplotlib (since 3.0 or 3.1) cause colorbar ticks to be placed incorrectly for plots that are zero everywhere or undefined everywhere
This is probably caused in the normalization of colors in the from the min and max of the data range to the matplotlib color scale.
The text was updated successfully, but these errors were encountered: