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

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

[Octave-bug-tracker] [bug #54610] imagesc doesn't implement ranges prope


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #54610] imagesc doesn't implement ranges properly
Date: Sat, 1 Sep 2018 15:20:21 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #1, bug #54610 (project octave):

Yes it is a bit odd case. The x and y arguments in image and imagesc functions
are supposed to be equivalent to setting the image object's "xdata" and
"ydata" respectively. The ML doc says

>> imagesc('XData',x,'YData',y,'CData',C) specifies the image location. This
syntax is the low-level version of imagesc(x,y,C). 

Now "xdata" and "ydata" are supposed to be two element vectors that indicate
the position of the *center* of the pixels at the corners of the image.

In the original example, setting a two element vector for a one pixel high
image makes no sense (there is only one center in the the y direction). It
would be interesting to know if Matlab produces an error or interprets the
[ymin ymax] as the coordinates of the boundaries (and puts the center at
(ymin+ymax)/2).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54610>

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




reply via email to

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