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
what version of Makie are you running? (]st -m Makie)
I am using Makie v0.21.14
can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
I can reproduce the bug with a fresh environment. The bug is that nan_color do not work as expected. I would expect the color of the NaN to be red and not transparent.
using CairoMakie
lons =-180:180
lats =-90:90
field = [exp(cosd(l)) +3(y/90) for l in lons, y in lats]
field[1:100,1:100] .=NaN
fig =Figure()
ax =Axis(fig[1,1])
surface!(ax, lons, lats, field; shading = NoShading, nan_color =:red)
fig
The code above produce the plot below.
What platform + GPU are you on?
I am using Windows 11 and NVIDIA RTX A2000 Laptop GPU.
The text was updated successfully, but these errors were encountered:
Strangely enough, I can't replicate this with mesh - it seems to be an issue specific to surface.
Mesh example:
using CairoMakie
vertices = [
0.00.00.0;
1.00.00.0;
1.01.00.0;
0.01.00.1;
] # points are 3D to make sure this goes through `draw_mesh3d`
faces = [
123;
341;
]
colors = [1.0, 2.0, 3.0, NaN]
scene =mesh(vertices, faces, color = colors, shading = NoShading, nan_color =:red)
Surface example:
using CairoMakie
surface([1.02.03.04.05.0; 3.04.0NaN4.05.0; 1.02.03.04.05.0] ./10; nan_color =:red)
]st -m Makie
)I am using Makie v0.21.14
]activate --temp; add Makie
)I can reproduce the bug with a fresh environment. The bug is that
nan_color
do not work as expected. I would expect the color of theNaN
to be red and not transparent.The code above produce the plot below.
I am using Windows 11 and NVIDIA RTX A2000 Laptop GPU.
The text was updated successfully, but these errors were encountered: