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

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

[Octave-bug-tracker] [bug #39371] addproperty fails for "axesunits" type


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #39371] addproperty fails for "axesunits" type
Date: Sun, 30 Jun 2013 10:24:12 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:22.0) Gecko/20100101 Firefox/22.0

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

                 Summary: addproperty fails for "axesunits" type
                 Project: GNU Octave
            Submitted by: pantxo
            Submitted on: dim. 30 juin 2013 10:24:10 GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.3
        Operating System: Any

    _______________________________________________________

Details:

Calling addproperty as followes:

>> hg = hggroup ();
>> addproperty ("myunits", hg, "axesunits", "normalized"); 

error: base_graphics_object::get_properties: invalid graphics object

>> addproperty ("myunits", hg, "axesunits", "normalized"); 



gives inconsistent result. 
The first call raises an error, while a second call won't raise any visible
error and the new property works fine with set and get.

Additionnal info:
 - tested on linux mint 14 (stable 3.6.3 and recent devel version) and on mac
os x (fink-3.6.3).
 - does not depend on the graphics_toolkit. 
 - also tried with a line instead of the hggroup and it gave me the same
result.
 - things are worst if I use "units" as the property name (but this is
probably another bug): with gnuplot toolkit trying to manipulate the new
property results in errors



>> graphics_toolkit ("gnuplot");
>> hg = hggroup ();
>> addproperty ("units", hg, "axesunits", "normalized"); 

error: base_graphics_object::get_properties: invalid graphics object

>> addproperty ("units", hg, "axesunits", "normalized"); 
>> set (hg, "units", "points")

error: invalid value = data
error: set: invalid value for radio property "units" (value = data)
error: called from:
error:   /sw/share/octave/3.6.3/m/plot/private/__go_draw_axes__.m at line 448,
column 11
error:   /sw/share/octave/3.6.3/m/plot/private/__go_draw_figure__.m at line
167, column 19
error:   /sw/share/octave/3.6.3/m/plot/__gnuplot_drawnow__.m at line 86,
column 5








    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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