How to change the axis limits of plotted graph in .fig format
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abhijit Sardar
am 19 Apr. 2022
Beantwortet: Voss
am 20 Apr. 2022
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 Kommentar
Akzeptierte Antwort
Voss
am 20 Apr. 2022
% 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

