Info

This question is closed. Reopen it to edit or answer.

Making all surfaces visible in R2014b

1 view (last 30 days)
Chad Greene
Chad Greene on 11 Mar 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
I'm writing a pcolor3 function to help visualize 3D data (e.g., atmospheric temperature, ocean salinity, etc.). My function works by creating 100 slice plots in each dimension and sets alpha values of slice surfaces very low. The function works in R2012b, but in R2014b, only the closest surfaces are visible. All the other slices seem to be completely ignored. Here's the data looking roughly the way I want it to in R2012b:
% Some data:
[x,y,z] = meshgrid(-2:.2:2,-2:.25:2,-2:.16:2);
v = x.*exp(-x.^2-y.^2-z.^2);
pcolor3(x,y,z,v,'edgealpha',.1)
colormap(paruly(256)) % (my parula emulator)
caxis([-.1 .1)
camlight
In R2014b I have to change alpha and caxis values for anything to actually show up, and then only the closest surfaces appear. All other 99 surfaces in each dimension disappear.
pcolor3(x,y,z,v,'alpha',.2);
caxis([-.01 .01])
camlight
I'd like to get my function working for R2014b. Is there a setting I can tweak when ~verLessThan('matlab','8.4.0')?
  1 Comment
Chad Greene
Chad Greene on 13 Mar 2015
Has anyone run into this? It seems like some sort of axis or figure setting that is only showing the frontmost surfaces.

Answers (1)

Min Wu
Min Wu on 7 Nov 2017
hi Chad, have you solved the problem? I have the same problem and have no idea how to deal with it? Could you please share me your solution if you know the answer (I am using matlab 2017a). Thank you so much for your help! Best, Min

Community Treasure Hunt

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

Start Hunting!