How to flip an axis on a plot without affecting the plot?
20 ビュー (過去 30 日間)
古いコメントを表示
I am trying to rotate the y axis of this plot such that the origin is at the upper left coner of the plot. How would I do so? ![example.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/242994/example.png)
![example.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/242994/example.png)
This is the code I have to set up my plot.
% Plot averaged vector field
figure(3)
quiver(x(acceptIdx)/48.11,(y(acceptIdx)/48.11),u_avg(acceptIdx),v_avg(acceptIdx),4)
axis([0 42 0 42])
yticks([0 5 10 15 20 25 30 35 40])
set(gca,'XAxisLocation','top','YAxisLocation','left');
xlabel('z (mm)')
ylabel('x (mm)')
title('Dimensional velocity field')
I'd like the y axis to look identical to the x axis.
Thanks.
0 件のコメント
採用された回答
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!