do not display value on the axis
古いコメントを表示
Hi,
I am looking for a code that allows me to plot a figure where there are no value displayed on the x axis
I tried to use this code here:
set(gca,'xtick',[])
but that didn't work, any suggestions?
採用された回答
その他の回答 (1 件)
Image Analyst
2013 年 5 月 18 日
Try this:
set(gca, 'xtick', [-inf inf]);
6 件のコメント
Image Analyst
2013 年 5 月 18 日

Locks
2013 年 5 月 18 日
Image Analyst
2013 年 5 月 18 日
編集済み: Image Analyst
2013 年 5 月 18 日
Explain why it does not work. It plots something in an axes control "where there are no value displayed on the x axis" just like you asked for.
Give me something we can run:
Undefined variable dataSet.
Error in test3 (line 1)
dates=datenum(dataSet(:,1));
Locks
2013 年 5 月 18 日
Image Analyst
2013 年 5 月 18 日
It doesn't seem to work because you used plotyy() instead of plot(). Do you really need two y axes? Can you use one common one?
dates=[1,2,3,4]
SPX=[0.1,0.2,0.1,0.2]
VIX=[0.02,0.28,0.2,0.3]
plot(dates,SPX,'gs-');
hold on;
plot(dates,VIX, 'bd-');
set(gca, 'xtick', [-inf inf]);
Locks
2013 年 5 月 18 日
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!