3D Contour plot. Filled slices/surfaces are black

8 views (last 30 days)
Hello all!
I have a list of data (x,y,z,v). I've browsed different methods on how to show these data. I couldn't use the meshgrid or griddata, otherwise, the program deletes duplicated results which I need to preserve. Additionally, the length of each vector is over 6,000 points That complicates the matlab performance. I've decided to use the scatteredInterpolant to get 'v' as a 3D matrix instead of a vector (the code and the input data are attached).
I'm currently trying to plot three surfaces orthogonal to z-axis. The output result looks as follows
I cannot understand why I end up having black surfaces here. My input data (results) range between 10^-4 to 10^8. Nevertheless, it seems that matlab doesn't assign zeros to some values, although I could see that some of them are displayed as zeros in the output.
Could you please help me to understand what's going on here and how I can fix this problem?
I'd appreciate any help. Thanks!

Answers (1)

Torsten
Torsten on 22 Jan 2023
Edited: Torsten on 22 Jan 2023
The mesh lines are black and cover the colors.
To remove them, use
gr = slice(Xg, Yg, Zg, Vg,[],[],zslice);
set(gr,'Edgecolor','none')

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!