How do I keep all plots open?

30 次查看(过去 30 天)
Hao Sun
Hao Sun 2020-3-23
评论: Sindar 2020-3-24
How do I keep plots open (even when function or code finishes) and have new plots just create a new plot (not on same axis or anything)
Also how to save multiple plots? e.g. have a function that everytime is run automatically saves the plot to some folder or something
  2 个评论
Walter Roberson
Walter Roberson 2020-3-23
Use
figure
and (probably) your new plots will not overwrite the old one.
Sindar
Sindar 2020-3-24
Also, "print" saves figures
"print(filename,formattype) saves the current figure to a file using the specified file format, such as print('BarPlot','-dpng'). If the file name does not include an extension, then print appends the appropriate one."

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by