Can I change axes of existing figure from linear to loglog in Matlab without redrawing all the data?
17 ビュー (過去 30 日間)
古いコメントを表示
I have a given Matlab figure, but not the original data. Can I change axes of existing figure from linear to loglog in Matlab without redrawing all the data?
0 件のコメント
採用された回答
Sean de Wolski
2014 年 7 月 10 日
set(gca,'XScale','log','YScale','log')
3 件のコメント
Chad Greene
2014 年 7 月 10 日
編集済み: Chad Greene
2014 年 7 月 10 日
You can change what's printed on the axes to anything you want, regardless of the actual numbers being plotted with xtick and xticklabel.
x=[1 1.5 4];
y=[1 2 3];
plot(x,y)
set(gca,'XTick',[1.1 2 3])
set(gca,'XTickLabel',str2mat('1.00','400','2'))
set(gca,'YTick',y)
set(gca,'YTickLabel',str2mat('1.00','2.00','pants'))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!