I am seeing weird lines on my bar graph which shouldn't be seen ideally.
I am using the following code:
y = [2 2 3; 2 5 6; 2 8 9; 2 11 12];
bar(y)
I have tried clf and clf('reset') but that doesn't seem to help. Now when I save the image as a regular png or jpeg file, the image is just fine. Can someone please help? This is really annoying.

댓글 수: 3

dpb
dpb 2015년 1월 14일
Release version?
Have you tried changing renderer options?
Looks like probably something to do w/ the new handle graphics in latest release if I had to take a guess...
Star Strider
Star Strider 2015년 1월 14일
@dpb — I ran Mihir Shah’s posted code in R2014b and I couldn’t reproduce the error. I agree that the renderer could be the problem.
dpb
dpb 2015년 1월 14일
Not terribly surprised; oftentimes these rendering problems are system-dependent with particular graphics drivers/cards and will work on 99+% of systems or the issue would've been found before...
Would be interesting to know if the OP has an earlier release installed on the same system if it appears there or not.
Also should have noted should check for any updates for his video drivers or has some other package been updated recently that could have inadvertently "rolled back" a system update.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

질문:

2015년 1월 13일

댓글:

dpb
2015년 1월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by