Yaxis invisible
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to make the yaxis invisible without getting rid of the text.
'axis off' is no good, because that gets rid of the ylabel, which I would like to keep.
I have tried:
set(gca,'box','off','ycolor','w')
but this also turns the text color to white.
In the end effect, I just don't want a black outline around my plots to be shown.
I have tried 'box off' but that doesnt seem to get rid of the black outline around my plots or subplots.
0 Kommentare
Antworten (1)
Matt Fig
am 28 Jan. 2011
I don't think there is a way of doing it directly. Here is a hackey way of getting what you want for the Y-axis. Do similar for the other axis.
plot(1:10)
X = get(gca,'xlim')
xlim(X)
Y = get(gca,'ylim')
ylim(Y)
P = patch([X(1)-.05 X(1)-.05 X(1)+.1 X(1)+.1],[Y(1) Y(2) Y(2) Y(1)],...
[1 1 1 1],[1 1 1],'edgecolor',[1 1 1])
box off
0 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!