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: Marshall
Subject: [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes
Date: Tue, 30 Oct 2018 19:34:40 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0

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

I've tried the new dev version, and it seems to have fixed the crash reported
as the primary bug of the original report. It also fixes the majority of the
other test cases, such as the disappearing image when moved outside of the
axis.

The first half of the original example still has problems with not drawing
partial pixels. Maybe there should be a separate bug report created? bug
#49490 mentioned in comment #3 seems to be different to me, but isn't fixed
either.


%"pixels" disappear when not completely within the axis (zoom or scroll)
figure(1),clf
im=uint8(rand(100,100)*255);
imshow(im)
hold on;
xs=[0 0 1 1 0];ys=[0 1 1 0 0];
xoff=xs-0.5;yoff=ys-0.5;
offset=50;
plot(xs+offset,ys+offset,'rx')
plot(xoff*0.75+0.5+offset,yoff*0.75+0.5+offset,'b')
hold off;
title('nice image')
pause(1)
axc=([0 1 0 1]-.5);
axis(axc*2+.5+offset)%zoom: partial pixels not shown
title('Partial image, whole pixels only')
pause(1)
axc=([0 1 0 1]-.75);
axis(axc*2+.5+offset)%zoom: partial pixels not shown
title('Partial image, whole pixels only, due to pan')
pause(1)
axc=([0 1 0 1]-.5);
axis(axc+offset+.5)%zoom more: no pixels shown (background color), plot is.
title('no image, no background (only plot), due to zoom')



    _______________________________________________________

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]