The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: 3D waterfall plots outside of axes box
Replies: 1   Last Post: Jun 20, 1996 2:52 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 1
Registered: 12/7/04
Re: 3D waterfall plots outside of axes box
Posted: Jun 20, 1996 2:52 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


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


.> Johan Carlson <> 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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.