Is it possible to disable axes' edges
51 views (last 30 days)
Show older comments
Matthew
on 17 Jul 2012
Answered: Christopher Bitikofer
on 11 Aug 2022
Hello,
Im working with handles to create a GUI that will be using several different axes. Can the edges of the axes be removed? I've been searching through the axes properties and I havent seen anything. Can someone please help!
Thanks in advance, Matt
0 Comments
Accepted Answer
Sean de Wolski
on 17 Jul 2012
So something like:
figure;
axes('box','off','xtick',[],'ytick',[],'ztick',[],'xcolor',[1 1 1],'ycolor',[1 1 1]);
line([0 1],[0 1])
2 Comments
More Answers (3)
Walter Roberson
on 17 Jul 2012
The only way to remove the edge of the axes is to set the axes visibility to be off. That will also make the tick marks invisible, along with any grid lines.
Image Analyst
on 18 Jul 2012
Matthew, If you have the Image Processing Toolbox, go to File->Preferences->Image Processing->IMSHOW Display and uncheck the "Axes visible" box. That will eliminate any black line around the edge of your images if you use imshow() to display your image.
1 Comment
Christopher Bitikofer
on 11 Aug 2022
This took me too long to figure out. The axes are objects with lots of fun properties including visibility
ax.XAxis.Visible = 'off';
0 Comments
See Also
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!