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.

Antworten (1)

Walter Roberson
Walter Roberson am 11 Mär. 2016

0 Stimmen

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

1 Kommentar

Prateek Kaushik
Prateek Kaushik am 11 Mär. 2016
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Mär. 2016

Kommentiert:

am 11 Mär. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by