[Top][All Lists]

[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 15:36:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

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

In opengl_renderer::draw_image
(https://octave.org/doxygen/4.4/dd/d82/gl-render_8cc_source.html#l03609) we
compute the pixel size in screen-pixels and normalized units

if (h > 1)
   pix_dy = (p1(1) - p0(1)) / (h-1);
   nor_dy = (y(1) - y(0)) / (h-1);

using ydata. This results in negative pixel size if ydata=[ymax ymin]. 
I think "get (gca, "ylim")" always returns [ymin ymax] whatever the "ydir",
and images should also do the same.

It would be interesting to test the following in Matlab

h = image (rand (20, 20, 3));
ylim (gca)
set (h, 'ydata', [20 1]); %error?
get (h, 'ydata')
ylim (gca)


Reply to this item at:


  Message sent via Savannah

reply via email to

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