FaceAlpha of bar3 plot smaller than 1 ruins rest of the plot
8 ビュー (過去 30 日間)
I am trying to generate the same plot as shown in the picture under 1). I got as far as shown under 2a) on the right hand side of the picture. As soon as I change the FaceAlpha of the surface of the bar3 plot the rest of the plot (area and contour) gets shaded as well (see 2b).
I create the figure as followed:
area(n_ICE_map_neu,Tq_ICE_max_map,'BaseValue',2400,'FaceColor',[1 1 1]);
I use MATLAB 2016a. Does anybody can help me to fix that problem?
回答 (1 件)
Sven 2016 年 6 月 16 日
We don't have your data (and we don't even know which of your variables are matrices, which are vectors etc.), so we can't make your figure. But it looks like you're having trouble getting all of the bars to be transparent. Try this:
N = 12;
Z = peaks(N);
b = bar3(Z);
set(b,'FaceAlpha',0.15,'FaceColor',[1 1 1]*0.9)
Did that help?