Why does the values in the y coordinate system change when I maximize the window?

1 回表示 (過去 30 日間)
Eng.
Eng. 2023 年 6 月 3 日
コメント済み: Rik 2023 年 6 月 3 日
When I select the maximize option for the figure I created in Matlab, the values in the y coordinate system change as follows. How can I make it stay the same? Thanks in advance

回答 (1 件)

Rik
Rik 2023 年 6 月 3 日
It looks like only the tick values are changing. Did you try setting the YTick property explicitly?
  2 件のコメント
Eng.
Eng. 2023 年 6 月 3 日
移動済み: Rik 2023 年 6 月 3 日
I found the issue. Thank you. I made a small mistake while writing the code."
I did it as follows;
yticks([-0.6:0.2:0.6])
Rik
Rik 2023 年 6 月 3 日
This will indeed set the YTick property. Note that you don't need the square brackets.

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

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by