[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61259] slow printing of images
From: |
Fabio |
Subject: |
[Octave-bug-tracker] [bug #61259] slow printing of images |
Date: |
Tue, 5 Oct 2021 13:29:48 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0 |
Follow-up Comment #7, bug #61259 (project octave):
the updated test script is
agt=available_graphics_toolkits;
v={'on','off'};
for n=[1e5 1e6 10e6]
fprintf(1,'\nnumber of points is %d\n\n', n)
x=linspace(1,2,n);
for k=1:length(agt)
close all
graphics_toolkit(agt{k});
fprintf(1,'toolkit is %s\n', agt{k})
for j=1:length(v)
if strcmp(agt{k},'fltk') && strcmp(v{j}, 'off')
fprintf(1, 'skipping test for %s where
visibility is off\n', agt{k})
continue
end
fprintf(1,'figure visibility is %s\n', v{j})
figure(1,'visible', v{j})
subplot(2,1,1)
plot(x,x)
subplot(2,1,2)
plot(x,-x)
tic;print('test_large.png');et=toc;
%tic;saveas(gcf,'test_large.png');et=toc;
fprintf(1,'printing of png took %f seconds\n', et)
%fprintf(1,'saveas of png took %f seconds\n', et)
tic;print('test_large.pdf');et=toc;
%tic;saveas(gcf,'test_large.pdf');et=toc;
fprintf(1,'printing of pdf took %f seconds\n', et)
%fprintf(1,'saveas of pdf took %f seconds\n', et)
end
end
end
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61259>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/