Stem Plot: How can I make the line to the data points stop at the lowest z axis value?

1 view (last 30 days)
I want to create a stem plot. As my data points are in the rang of around 8300 I adjusted my t axis to be able to see the difference between them. However, now the lines to the data points reach below my graph - and I don't want that. Is there a way of making them stop at the lowest Z value, or creating a solid z base surface - so that it at least looks more three dimensional?
This is my code:
%Plot
s(1) = subplot(2,1,1);
stem3(s(1),x,y,z,'MarkerFaceColor','m')
axis ([ 1.6 4.2 2 6.5 8220 8360])
view(78,0)
set(gca,'YTick',[]);
set(gca,'XTick',[]);
s(2) = subplot(2,1,2);
stem3(s(2),x,y,z,'MarkerFaceColor','m')
axis ([ 1.6 4.2 2 6.5 8220 8360])
view(70,45)
Cheers Lis

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 20 Sep 2013
Remove the axis function
  4 Comments
Lis
Lis on 21 Sep 2013
so there is no way to shorten those lines below my points? what is the difference in using axis or zlim?

Sign in to comment.

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!