discretize icon indicating copy to clipboard operation
discretize copied to clipboard

Regression 3d_slicer

Open prisae opened this issue 4 years ago • 1 comments

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))

example

prisae avatar Aug 19 '21 08:08 prisae

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

prisae avatar Aug 19 '21 09:08 prisae

That was fixed in #262

prisae avatar Feb 23 '24 14:02 prisae