Plot a time series plot in customized rectangle
Mostrar comentarios más antiguos
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 comentario
Nathan Blanc
el 2 de Abr. de 2024
Editada: Nathan Blanc
el 2 de Abr. de 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
Respuesta aceptada
Más respuestas (2)
plot(time,pm_1,'b','LineWidth',1); % You may change line width
Nathan Blanc
el 2 de Abr. de 2024
Editada: Nathan Blanc
el 2 de Abr. de 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
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

