Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to move lines upward, which are currently covered by a surf?

Subject: how to move lines upward, which are currently covered by a surf?

From: Kuo-Hsien

Date: 6 Feb, 2012 19:52:10

Message: 1 of 1

Hi -

I like to draw province boarder lines on the top of a mesh figure. However, the lines are hidden behind the mesh figure.

How to move the lines upward?! Thanks.
Note: I do not want to use FaceAlpha.

Here is my code:

surf(lon,lat,squeeze_veg,'LineStyle','none');
shading faceted
view(2);
grid off;box on
hold on
for k=1:length(M.ncst),
  line(M.ncst{k}(:,1),M.ncst{k}(:,2),'Color','r','LineStyle','-','LineWidth',2);
end

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us