Thanks for your reply, we tried what you suggested, but there still seems to be a bug in waterfall. The problem arises when there is data that extends far below the minimum z-axis value, like when plotting log data of an FFT result, and the z-axis has been set to -100 (dB) for z-min and 0 for z-max.
We have found no way to keep MATLAB from drawing over the bottom of the z-axes and outside of the 3-D box, except to clip the data itself (which can produce incorrect graphical results).
.> Johan Carlson <email@example.com> writes: .> Chi-Chuan Lin wrote: .> > .> > Hi: .> > .> > For a "Waterfall" plot with an arbitrary view angle, I don't .> > want the data to be drawn outside an "axes box". But, all .> > of the clipping methods I have tried--axis, caxis, etc.--don't .> > keep the data contained completely. It seems that MATLAB .> > clips to the min. and max. amplitude of the waterfall data, .> > which means points are still outside of the 3-D box if its at .> > an angle. .> > .> > I have tried clipping the data beforehand, but the graph .> > is wrong (at the clipping boundaries) if the data points are .> > far apart. Interpolation would fix this, but then the graph .> > takes forever to draw. .> > .> > Does anyone have a reliable clipping method for angled .> > 3D waterfall plots? .> > .> > Chi-Chuan .> > Signalogic .> .> .> You could try changing the limits on the axis. .> set(gca, 'xlim', [x_min x_max]); .> set(gca, 'ylim', ... > set(gca, 'zlim', ... .> .> If I understood your problem right, this should do it. .> .> /Johan Carlson .> .>>>>