Plot a time series plot in customized rectangle
Mostra commenti meno recenti
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 Commento
Nathan Blanc
il 2 Apr 2024
Modificato: Nathan Blanc
il 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
Risposta accettata
Più risposte (2)
plot(time,pm_1,'b','LineWidth',1); % You may change line width
Nathan Blanc
il 2 Apr 2024
Modificato: Nathan Blanc
il 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
Categorie
Scopri di più su Annotations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

