R2020aではどう​すれば軸の方向を反転​できますか?

47 views (last 30 days)
佑樹 藤重
佑樹 藤重 on 16 Jul 2020
Commented: Kenta on 16 Jul 2020
グラフの軸の反転のやり方を探していて、以下にあったサンプルコードを試しに実行してみたのですが、図のように反転されず通常通りの表示になってしまいます。
サンプルコード
figure(1)
stem(1:10)
ax = gca;
ax.XDir = 'reverse';
ax.YDir = 'reverse';
バージョンはR2020aです。このバージョンではXdirは使えないのでしょうか。そうでしたら、他にどのような方法があるのでしょうか。
  3 Comments
佑樹 藤重
佑樹 藤重 on 16 Jul 2020
返信ありがとうございます。
試しに同じバージョンが入ってる他の人のパソコンでやってみたらできました。もう少し試行錯誤してみます。助かりました。
Kenta
Kenta on 16 Jul 2020
こんにちは、私のPC (windows, 2020a) でもうまく反転されています。単にPCを再起動したりするのでは解決しませんかね?

Sign in to comment.

Answers (0)

Categories

Find more on 2 次元および 3 次元プロット in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!