Display only borders for axes plotting

I want to display an image in Matlab GUI. For GUI reset state, how do I keep only a rectangular border for axes while removing all the ticks, grids, etc. Need black border and white color inside the rectangle.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 3월 11일

0 개 추천

You can set the XTick and YTick and ZTick properties to be empty, and set Grid off.

댓글 수: 1

Prateek Kaushik
Prateek Kaushik 2016년 3월 11일
It would be better if you can help me with the code:
axes(handles.axes1)
plot(0,0)
set(gca,'Visible','off');
This code removes even the borders, I want to keep a rectangle with all other aspects removed. Black border white bg.

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

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

질문:

2016년 3월 11일

댓글:

2016년 3월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by