help-octave
[Top][All Lists]
Advanced

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

Re: Figure handle is very slow, saving impossible


From: Kire Pudsje
Subject: Re: Figure handle is very slow, saving impossible
Date: Fri, 7 Apr 2017 18:16:38 +0200



On Thu, Apr 6, 2017 at 7:53 AM, christoph <address@hidden> wrote:

Here are my scripts,

Case1:

pic_1=imread("/opt/octave/pics/clipped.tiff")

........

.......

hold "on"
imagesc(pic_1)
plot([CoordsPoints{:}](2,:),[CoordsPoints{:}](1,:),"ro")
hold "off"

print -dpng /opt/octave/pics/test.png ----->>>fails!!

notice:

                      Dimention       class

<<<<pic_1   4800x3600x3  uint8>>>>



I do not experience problems.
I tried to make a self contained version of your script.
The following should fail for you.

sz = [4800,3600];
pic1=peaks(max(sz));
pic1(:,:,2) = pic1';
pic1(:,:,3) = fliplr(pic1(:,:,1));
pic1=pic1(1:sz(1),1:sz(2),:);
imagesc(pic1);
hold on;
plot(sz(2)*rand(100,1), sz(1)*rand(100,1),'ro');
hold off;
print -dpng test.png

Could you verify if it is size related?
What happens if you choose sz = [480,360] ?

reply via email to

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