Plot a time series plot in customized rectangle
古いコメントを表示
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 件のコメント
Nathan Blanc
2024 年 4 月 2 日
編集済み: Nathan Blanc
2024 年 4 月 2 日
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
採用された回答
その他の回答 (2 件)
plot(time,pm_1,'b','LineWidth',1); % You may change line width
Nathan Blanc
2024 年 4 月 2 日
編集済み: Nathan Blanc
2024 年 4 月 2 日
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
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

