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

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

[Octave-bug-tracker] [bug #41142] change to legend deletes and recreates


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #41142] change to legend deletes and recreates text objects
Date: Tue, 07 Jan 2014 23:48:44 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?41142>

                 Summary: change to legend deletes and recreates text objects
                 Project: GNU Octave
            Submitted by: bpabbott
            Submitted on: Tue 07 Jan 2014 06:48:44 PM EST
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Ben Abbott
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

With Matlab, the example below does not throw an error


clf ()
plot (rand (2))
legend ({"foo", "bar"})
h = findobj (gcf (), "-property", "fontsize")
h =

  -21.712
  -28.956
  -15.743
  -16.340
get (h, "type")
ans = 
{
  [1,1] = axes
  [2,1] = axes
  [3,1] = text
  [4,1] = text
}
get (h(3:end), 'string')
ans = 
{
  [1,1] = bar
  [2,1] = foo
}
set (h, "fontsize", 16)
error: set: invalid handle (= -15.7428)
error: called from:





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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