Plot a time series plot in customized rectangle
Show older comments
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 Comment
Nathan Blanc
on 2 Apr 2024
Edited: Nathan Blanc
on 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
Accepted Answer
More Answers (2)
plot(time,pm_1,'b','LineWidth',1); % You may change line width
Nathan Blanc
on 2 Apr 2024
Edited: Nathan Blanc
on 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
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
