필터 지우기
필터 지우기

removing blackness in ribbon plot

조회 수: 3 (최근 30일)
Ruben
Ruben 2013년 4월 17일
댓글: Joana Cabral 2018년 5월 18일
I am currently using the ribbon plotting function to plot a 678x13 matrix. I would like to use this figure in a report I am writing, yet because of the largness of the matrix I get an awful lot of black regions in the figure. Does anyone know how to remove this? I have included the figure to show you the problem.
Thanks in advance
  댓글 수: 2
Mahdi
Mahdi 2013년 4월 17일
Have you tried averaging the data within the matrix?
Have you tried using the width section of the ribbon command as in
ribbon(x,y,width)
Ruben
Ruben 2013년 4월 17일
the width option has no effect. What do you mean with averaging the data within the matrix?

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

채택된 답변

Jonathan Epperl
Jonathan Epperl 2013년 4월 17일
The black regions you are seeing are the gridlines along the 678 rows of your matrix. My suggestions:
Save the handles to the surfaces in h:
h = ribbon(M)
Then loop over all of them and set either of those options:
set(ii,'EdgeColor','none')
set(ii,'MeshStyle','column')
set(ii,'EdgeAlpha',.25)
The first removes all the grid lines, the second one removes them in the 'rows' direction, and the third one makes them less opaque. As a copy&paste-able example:
h = ribbon(double(rand([678,20])>.7));
for ii=h'
set(ii,'EdgeAlpha',.25)
end
  댓글 수: 2
Ruben
Ruben 2013년 4월 18일
works like a charm, thank you very much!
Joana Cabral
Joana Cabral 2018년 5월 18일
Thanks!

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by