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

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)

Remove the axis function

4 Comments

But then the resolution of my graph is too low. I want the axis to be at the defined values. Isn't there another solution?
Then change the value of axis parameters, they are badly defined, at least for x or y. Instead of axis use just
zlim([zmin zmax])
so there is no way to shorten those lines below my points? what is the difference in using axis or zlim?
with zlim you will change only z axis limite. Post your data x, y and z

Sign in to comment.

Categories

Asked:

Lis
on 20 Sep 2013

Community Treasure Hunt

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

Start Hunting!