help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

imwrite or print


From: Leonardo
Subject: imwrite or print
Date: Wed, 10 Jun 2020 22:10:06 +0000 (UTC)

Hello, 

after

t = linspace(0,2*pi,100)';
plot(t,sin(t));
tic;print -dpng "-S560,420" fig_print.png;toc
tic;imwrite(getframe(gcf).cdata,"fig_imwrite.png");toc

I could not find any differences between both files (fig_print.png and 
fig_imwrite.png).

However imwrite is much faster than print

So, I have a few general questions about both commands

1) Is imwrite always faster than print ?

2) Is there any situation where one command should be used instead of the other 
one?

3) Is there any situation where the results will be different?

Kind regards,
Leonardo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]