octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49756] Crash when panning an image to top of


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes
Date: Wed, 24 Oct 2018 11:45:17 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #6, bug #49756 (project octave):

After trying the crashing example again, I can see something wrong on linux
too: even though this doesn't lead to a crash, the clipping of the image is
wrong when I pan/drag the image.

FTR, the problematic example is:


close all
im=uint8(rand(495,495)*255);
imx0 = 60;
imy0 = 70;
imxf = 442;
imyf = 452;
imxF = 9;
imyF = 3000;
imshow(im,'xdata',([1,size(im,1)]-imx0)*imxF/(imxf-imx0),'ydata',([size(im,2),1]-imy0)*imyF/(imyf-imy0))
axis('on','xy','normal')


The origin of the issue is that the opengl renderer assumes ydata(1) >
ydata(2) and it is a wrong assumption in this example. 

I don't know if ML allows ydata(1) < ydata(2) but I'd be tempted to disallow
that or silently invert those data. Thoughts?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?49756>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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