Overlap Gridline and Border (Box)

I have a pesky visual problem with plotting. When I plot using gridlines and "box on", the gridline for the upper y-limit doesn't match up exactly with the border, so there you see both. Is there a way to fix this?

4 Comments

Just wondering... which renderer are you using, and does the behavior change if you switch to a different one?
John
John on 7 Sep 2012
Edited: John on 7 Sep 2012
Had never changed that before. I was using Painters, tried OpenGL and Zbuffer, and all three had the same problem.
Repro code for a minimal working example?
Couldn't really recreate it, but I found a fix. I was using a specific figure size, and adjusting this by a small amount made the problem go away.

Sign in to comment.

Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Asked:

on 7 Sep 2012

Community Treasure Hunt

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

Start Hunting!