开发者

How to save image of a histogram?

开发者 https://www.devze.com 2023-02-11 09:32 出处:网络
I have created a histogram using (hist开发者_如何学Python) function... after that, I need to save created image in a file *.png (jpeg) ?

I have created a histogram using (hist开发者_如何学Python) function... after that, I need to save created image in a file *.png (jpeg) ? Using what function can I do this?

thx


To save a figure as an image you can use the functions PRINT or SAVEAS, or you can use the figure menu option File -> Save.

For more information on exporting figures from MATLAB, check out this documentation.


I usually use something similar to:

print('-f1','-dtiff','file_name');

to print the figure 1 (-f1) ... anyway check the help for a best description of print and you will find the right driver (-d option) for the type of file you need and extra options

0

精彩评论

暂无评论...
验证码 换一张
取 消