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

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

[Octave-bug-tracker] [bug #39243] OpenGL: change to {x, y}data does not


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #39243] OpenGL: change to {x, y}data does not update bar()
Date: Fri, 14 Jun 2013 01:06:55 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36

Follow-up Comment #7, bug #39243 (project octave):

If I understand your question, my impression is that the value is "hidden". 
Essentially, something like below is happening.


sz = min (size (xdata), size (ydata));
xdata_to_return = xdata(1:sz(1),1:sz(2));
ydata_to_return = ydata(1:sz(1),1,sz(2));


The modified test you asked for is below.


h = patch (1 + [0 1 0 0], [0 0 1 0], 'b');
xdata = get (h, 'xdata');
ydata = get (h, 'ydata');
set (h, 'ydata', ydata(1:3))
get (h, 'xdata')

ans =

     1
     2
     1

set (h, 'ydata', ydata)
get (h, 'xdata')

ans =

     1
     2
     1
     1


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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