Eliminate coloured lines around bars in a bargraph

조회 수: 5 (최근 30일)
Jamie Shelley
Jamie Shelley 2018년 4월 20일
댓글: Jamie Shelley 2018년 4월 21일
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
Ahmet Cecen
Ahmet Cecen 2018년 4월 20일
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 2018년 4월 21일
I took the photo directly from the figure window, however, it does also appear when I save the image.

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

채택된 답변

Image Analyst
Image Analyst 2018년 4월 21일
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
Jamie Shelley
Jamie Shelley 2018년 4월 21일
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.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by