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
Since yt 4.1.0, setting arbitrary colorbar norms is supported, however internally, isinstance(norm, SymLogNorm) is used with no regards to the actual base (base 10 is implicitly assumed) to trigger some hard coded special behaviours (most importantly setting minor ticks, which isn't handled well by matplotlib for this norm type).
I find that while this is definitely fixable for matplotlib 3.5 and newer, it is much harder (dare I say, not worth it) for older versions, because SymLogNorm object do not expose the log base they are using, not even in private attributes.
I'll be working on a fix within the assumption that dropping support for Matplotlib 3.2, 3.3 and 3.4 is now acceptable (albeit an unresolved conversation, see #4379).
Bug report
Bug summary
Since yt 4.1.0, setting arbitrary colorbar norms is supported, however internally,
isinstance(norm, SymLogNorm)
is used with no regards to the actual base (base 10 is implicitly assumed) to trigger some hard coded special behaviours (most importantly setting minor ticks, which isn't handled well by matplotlib for this norm type).Code for reproduction
Actual outcome
Expected outcome
Ticks should be powers of 2 instead of powers of 10.
Version Information
The text was updated successfully, but these errors were encountered: