discretize
discretize copied to clipboard
Regression 3d_slicer
I think this is a regression. I remember this issue existed before, and I did fix it (pre 0.6.0). However, I cannot find it now.
Issue: if you plot a fullspace, the z-y-plot has a different colorscale.
import discretize
import numpy as np
mesh = discretize.TensorMesh(([1, 1], [1, 1], [1, 1]), (0, 0, 0))
mesh.plot_3d_slicer(np.ones(mesh.n_cells))

Yes, I fixed it here:
https://github.com/simpeg/discretize/commit/c2a8300817980f82ffee2478bfa1e5d46e9ce93e
I did some quick testing:
- 0.4.10 and before: BROKEN
- 0.4.11 (not on conda-forge)
- 0.4.12 - 0.4.15: FIXED
- 0.5.0 onwards: BROKEN
So something btw 0.4.15 and 0.5.0 broke it: https://github.com/simpeg/discretize/compare/v0.4.15...v0.5.0
That was fixed in #262