bugGNU Octave - Bugs: bug #39394, set error with user defined ...

 
 

bug #39394: set error with user defined "units" property

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Tue 02 Jul 2013 08:21:30 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 13 Dec 2017 07:20:50 PM UTC, comment #2: 

I fixed this on the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/66977aecf3c0).  The problem was that, for text objects, later bits of the code wanted the position properties in "data" units.  But "data" is not a "units" value of all graphic objects like axes.

I also added Dan Sebald to the CC list in case this was not the right fix.

Closing report.

Rik <rik5>
Group administrator
Mon 21 Nov 2016 10:12:31 PM UTC, comment #1: 

This (gnuplot) issue is still present in Octave 4.2.0.

Hartmut <hardy>
Tue 02 Jul 2013 08:21:30 AM UTC, original submission:  

When a "units" property is added to a graphics object using addproperty, subsequent manipulations of this property, or any other user defined property raises an error:


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

error: base_graphics_object::get_properties: invalid graphics object

>> addproperty ("units", hg, "axesunits", "normalized") # called twice because of bug http://savannah.gnu.org/bugs/?39371)
>> 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

>> addproperty ("toto", hg, "any", 1)
>> set (hg, "toto", 2)

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


These errors only occur with gnuplot graphics toolkit.

Pantxo Diribarne <pantxo>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by pantxo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-13 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Carbon-Copy- Added sebald
    2014-12-28 rik5 Summaryset error whith user defined &quot;units&quot; property set error with user defined "units" property
    2014-12-28 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code