Plotting only one axis
17 ビュー (過去 30 日間)
古いコメントを表示
Hello I am having a plot and I don't want to use the axis off command to remove the information in both axes, but I want to have the information in the X-axis and want the Y-axis to be completely free. Kindly help me how to do that.
0 件のコメント
回答 (2 件)
Aurelien Queffurust
2012 年 6 月 8 日
I would use these commands:
plot(1:10)
set(gca,'ytick',[],'Ycolor','w','box','off')
0 件のコメント
Jessica Lam
2012 年 6 月 8 日
You may set the axis color same as the background color .
1 件のコメント
Jessica Lam
2012 年 6 月 8 日
You may find the following code for your reference.
figure1=figure(1);
axes1 = axes('Parent',figure1,...
'YColor', get(figure1,'Color'));
hold(axes1,'all');
plot (1:10,'b');
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!