-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volume bug using an exponentially stretched mesh #4683
Comments
It's hard to tell what you're doing without any comment or code. |
my julia code like this:
|
Well, that doesn't really help narrow down the problem, especially if all those people never raise an issue^^ A simple MWE does seem to do the correct thing from what I understand: fig = Figure()
ax = Axis3(fig[1, 1],
aspect=:data,
)
volume!(ax, 0..10, 0..10, 0..1, rand(100, 100, 100), algorithm=:iso, isovalue=0.1)
fig Can you make something I can run, to have some actual values, that reproduces the issue? |
Ah, I see, I didn't see that your x/y/z aren't uniform. |
We introduced warnings for the 2d case for image at some point, we should probably just make those hard errors instead because the behavior for non-uniform vectors is plain wrong, and then add the same thing for julia> image([1, 2, 4], [2, 3, 4], rand(3, 3))
┌ Warning: Encountered an `AbstractVector` with value [1, 2, 4] on side x in `convert_arguments` for the `ImageLike` trait.
│ Using an `AbstractVector` to specify one dimension of an `ImageLike` is deprecated because `ImageLike` sides always need exactly two values, start and stop.
│ Use interval notation `start .. stop` or a two-element tuple `(start, stop)` instead.
└ @ Makie ~/.julia/packages/Makie/pFPBw/src/conversions.jl:416
┌ Warning: Encountered an `AbstractVector` with value [2, 3, 4] on side y in `convert_arguments` for the `ImageLike` trait.
│ Using an `AbstractVector` to specify one dimension of an `ImageLike` is deprecated because `ImageLike` sides always need exactly two values, start and stop.
│ Use interval notation `start .. stop` or a two-element tuple `(start, stop)` instead.
└ @ Makie ~/.julia/packages/Makie/pFPBw/src/conversions.jl:416 Might still be able to put this into the breaking release |
I think we already have the same warnings for volume |
Ok, Thanks for your reply! |
@SimonDanisch right I'm mostly saying we should turn the warnings into errors at this point |
]st -m Makie
)]activate --temp; add Makie
)The correct isosurface distribution should look like this:
But in Makie.volume it looks like this:
The height of the isosurface on y is much higher than the actual value. It should be caused by the program automatically dividing the grid in the y direction equidistantly( y=range(0, stop=y0[end], length=length(y0)) ) , and the coordinates used in volume are not y0, but y. Similar grids and data distributions can be obtained from the following websites:
http://hal.dmt.upm.es/
The text was updated successfully, but these errors were encountered: