How to make the negative sign of y axis to be up ?
21 ビュー (過去 30 日間)
古いコメントを表示
How to make the negative sign of y axis to be up?
0 件のコメント
回答 (2 件)
VBBV
2024 年 7 月 15 日
ydata = -900:100:100
xdata = ydata.*ones(1,length(ydata))
plot(xdata,ydata)
yticks = ydata;
yticklabels(fliplr(yticks))
1 件のコメント
dpb
2024 年 7 月 15 日
ydata = -900:100:100;
xdata = ydata;
plot(xdata,ydata)
hAx=gca;
hAx.YDir='reverse';
The above reverses the actual relation between the x, y values; as defined, y==x so the negative x and y values should be associated visually.
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!