Eliminate coloured lines around bars in a bargraph

2 Ansichten (letzte 30 Tage)
Jamie Shelley
Jamie Shelley am 20 Apr. 2018
Kommentiert: Jamie Shelley am 21 Apr. 2018
When using "bar", I'm getting some strange coloured lines around the bars I'm plotting. I've tried adding "EdgeColor",'k' after the variables being plotted, but this hasn't eliminated the green and red lines that have cover the lower section of my bars.
I haven't managed to find anything on the forum of people having the same problem so I was wondering if anyone knew how to remove these lines?
Thanks
  2 Kommentare
Ahmet Cecen
Ahmet Cecen am 20 Apr. 2018
Is this happening only when you save the figure, or do you see it on the MATLAB figure window as well?
Jamie Shelley
Jamie Shelley am 21 Apr. 2018
I took the photo directly from the figure window, however, it does also appear when I save the image.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 21 Apr. 2018
You can try 'EdgeColor, 'none'
but if I remember correctly that might have been a bug in the renderer. You could try a different renderer or do a search on this forum - I think someone else has asked this before.
  1 Kommentar
Jamie Shelley
Jamie Shelley am 21 Apr. 2018
Thank you, your solution worked! I think you're right regarding a bug in the renderer, as I tried to turn the outlines back to black after removing them and they reappeared with the green and red lines.
Thanks for your help.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by