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 CenterFile Exchange에서 2-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