Weird lines in bar graph

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 comentarios

dpb
dpb el 14 de En. de 2015
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 el 14 de En. de 2015
@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 el 14 de En. de 2015
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 13 de En. de 2015

Comentada:

dpb
el 14 de En. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by