필터 지우기
필터 지우기

How can I get rid of the line that connects end points in a 3D plot (plot3 function)

조회 수: 3 (최근 30일)
Dear all,
I'm using plot3(x,y,z) to plot a 3D dataset. The plot is fine except a line that connects the end/starting points between the plots (see attached .bmp). Is it possible to delete that line? Are there any alternatives? Thank you!

채택된 답변

Walter Roberson
Walter Roberson 2015년 11월 24일
You should be using a grid of data with one column of z for each distinct line that you want plotted. The result would give you one graphic line object per line and you would be able to customize them individually including giving them distinct legend entries.
Alternately, you can insert NaN in the coordinate series at each location that you want there to be a visible break in the line. If you use this route then you will not be able to customize the visible lines individually: they will all need to have the same appearance.
  댓글 수: 1
Fotaras Sitof
Fotaras Sitof 2015년 11월 24일
Thanks Walter. The first approach is more tidy and gives more control on further manipulating the data.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by