Plot a time series plot in customized rectangle
Ältere Kommentare anzeigen
I am plotting a time series from the attached data.
plot(time,pm_1,'b-','LineWidth',3);
I am getting the following plot (plot_xp.png). But I want my plot to be in a rectangle window like the attached (desired_plot.png). Can you please help me with the necessary changes.
Thank you very much
1 Kommentar
Nathan Blanc
am 2 Apr. 2024
Bearbeitet: Nathan Blanc
am 2 Apr. 2024
I think if you just write:
plot(time,pm_1);
grid off
and change the size of the figure window a bit, you will get what you want. You can also play around with hte colors and linewidths. for example
plot(time,pm_1,'r-','LineWidth',1);
will give you a red line with a line width of 1
Akzeptierte Antwort
Weitere Antworten (2)
plot(time,pm_1,'b','LineWidth',1); % You may change line width
Nathan Blanc
am 2 Apr. 2024
Bearbeitet: Nathan Blanc
am 2 Apr. 2024
plot(time,pm_1);
grid off
and change the size of the figure window a bit, you will get what you want. You can also play around with hte colors and linewidths. for example
plot(time,pm_1,'r-','LineWidth',1);
will give you a red line with a line width of 1
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

