Mirror about Y axis

4 ビュー (過去 30 日間)
juan sanchez
juan sanchez 2022 年 5 月 11 日
コメント済み: juan sanchez 2022 年 5 月 11 日
How can I plot this axis to the mirror about the y axis and x axis pointing the opposite direction? Thank you.
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
plot (a, b,'.')

採用された回答

DGM
DGM 2022 年 5 月 11 日
Something like this:
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14];
plot(a,b);
hax = gca;
hax.XDir = 'reverse'; % flip axis direction
hax.YAxisLocation = 'right'; % move ticks & labels to the other side
  1 件のコメント
juan sanchez
juan sanchez 2022 年 5 月 11 日
Thank you very much. This is very helpful.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by