• Remix
  • Share
  • New Entry

  • Yoshio

  • /
  • Modify the Alphamap

on 12 Oct 2021
  • 2
  • 12
  • 0
  • 0
  • 259
% https://www.mathworks.com/help/matlab/creating_plots/selecting-an-alphamap.html
[x,y,z] = meshgrid(-1.25:.1:-.25,-2:.2:2,-2:.1:2);
v = x.*exp(-x.^2-y.^2-z.^2);
h = slice(x,y,z,v,[-1 -.75 -.5],[],[0]);
set(h,'EdgeColor','none','FaceColor','interp','FaceAlpha','interp')
alpha('color')
alphamap('rampdown')
alphamap('increase',.1)
colormap hsv
axis off
Remix Tree