[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:
<https://savannah.gnu.org/bugs/?49756>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Pantxo Diribarne, 2018/10/24
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Pantxo Diribarne, 2018/10/24
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Pantxo Diribarne, 2018/10/24
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Rik, 2018/10/24
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Markus Mützel, 2018/10/25
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Pantxo Diribarne, 2018/10/25
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Rik, 2018/10/25
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Pantxo Diribarne, 2018/10/26
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Marshall, 2018/10/27
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Pantxo Diribarne, 2018/10/28
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Rik, 2018/10/30
- [Octave-bug-tracker] [bug #49756] Crash when panning an image to top of axes, Marshall, 2018/10/30