removing blackness in ribbon plot

1 Ansicht (letzte 30 Tage)
Ruben am 17 Apr. 2013
Kommentiert: Joana Cabral am 18 Mai 2018
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 Kommentare
Ruben am 17 Apr. 2013
the width option has no effect. What do you mean with averaging the data within the matrix?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jonathan Epperl
Jonathan Epperl am 17 Apr. 2013
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:
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'
  2 Kommentare
Joana Cabral
Joana Cabral am 18 Mai 2018

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)


Community Treasure Hunt

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

Start Hunting!

Translated by