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: christoph
Subject: Re: Figure handle is very slow, saving impossible
Date: Thu, 6 Apr 2017 07:53:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

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>>>>

Case2:

pic_2=imread("/opt/octave/pics/clipped_grayscale.tiff")

........

.......

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

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

                      Dimention       class

<<<<pic_2   4800x3600      uint8>>>>




 


On 2017-04-06 01:02, Kire Pudsje wrote:


On Wed, Apr 5, 2017 at 11:12 PM, christoph <address@hidden> wrote:

Hello,

I tried imagesc and indeed that's way faster then surfplot! Thanks a lot for this advice.  Concerning the print problem.--->>

I tried -dpng and also -djpeg as well as -dpdf all failed, if I have a color(RGB band) picture to print.

But in case of  grascale image(one band) it works properly!

Has this anything to do with osmesa? because test on osmesa failed when I did "make check". I read a thread about a problem with osmesa and nvidia driver. Probably that's the issue? 


Please prepare a minimal scripts that generates the problem. The following

imagesc(peaks(7000));
print -dpng test.png
print -dpdf test.pdf

works for me


reply via email to

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