How to change the axis limits of plotted graph in .fig format

13 ビュー (過去 30 日間)
Abhijit Sardar
Abhijit Sardar 2022 年 4 月 19 日
回答済み: Voss 2022 年 4 月 20 日
I have already plotted the graph and it has 2 axis. i want to change the limit of yaxis right and yaxs left in the graph itself sicne i dont have the .m file. please help
  1 件のコメント
Voss
Voss 2022 年 4 月 20 日
Please upload the .fig file (using the button with the paperclip icon).

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

採用された回答

Voss
Voss 2022 年 4 月 20 日
% make some plot with two y-axes
yyaxis right
plot(2:20)
yyaxis left
plot(1:10);
% save the figure to file
saveas(gcf(),'my_fig.fig')
% % (delete the figure)
% delete(gcf())
% open the figure from file
openfig('my_fig.fig');
% modify the y-axes' limits
yyaxis left
ylim([-10 10]);
yyaxis right
ylim([-10 20]);

その他の回答 (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