import scipp as sc
import plopp as pp
%matplotlib widget
da = sc.DataArray(sc.arange('x', 1, 101).fold('x', sizes={'x': 10, 'y': 10}))
I get a bunch of strange results with log norms.
pp.plot(da, norm="log") raises ValueError: Invalid vmin or vmax from mpl's colorbar.
pp.plot(da, vmin=1, vmax=100, norm="log") warns:
site-packages/numpy/core/fromnumeric.py:86: RuntimeWarning: invalid value encountered in reduce
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
I also have some more complicated data where da.plot(log='norm') raises AttributeError: QuadMesh.set() got an unexpected keyword argument 'log'. (With and without vmin and vmax) But I can't seem to reproduce it with other data.
Note that in the first 2 cases, clicking the 'log' button shows the corresponding error/warning in the Jupyter log console. But in the third case, it shows nothing. But the plot also doesn't change when clicking the button.
Given
I get a bunch of strange results with log norms.
pp.plot(da, norm="log")
raisesValueError: Invalid vmin or vmax
from mpl's colorbar.pp.plot(da, vmin=1, vmax=100, norm="log")
warns:I also have some more complicated data where
da.plot(log='norm')
raisesAttributeError: QuadMesh.set() got an unexpected keyword argument 'log'
. (With and without vmin and vmax) But I can't seem to reproduce it with other data.Note that in the first 2 cases, clicking the 'log' button shows the corresponding error/warning in the Jupyter log console. But in the third case, it shows nothing. But the plot also doesn't change when clicking the button.