bugGNU Octave - Bugs: bug #56452, No longer able to switch existing...

 
 

bug #56452: No longer able to switch existing plot from 'qt' toolkit to 'gnuplot' toolkit

Submitter:  Rik <rik5>
Submitted:  Thu 06 Jun 2019 05:44:50 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Regression
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
   

Fri 07 Jun 2019 03:38:06 PM UTC, comment #2: 

@Pantxo: Thanks, this works for me now.

I note the same issue as you with switching from FLTK to Qt.  The uimenu objects which are children of the the figure object are in the wrong order.  But re-ordering them does not fix the issue.  I guess you could file a new bug report about that, but make it very low priority (1).  It just isn't that important.

The problem is that the "position" property of the three uimenu objects are getting scrambled.  If you set them back to "position", 1 = left, "position", 2 = middle, "position", 3 = right then they are drawn in the correct locations.

Rik <rik5>
Group administrator
Fri 07 Jun 2019 01:56:55 PM UTC, comment #1: 

I fixed this here:

http://hg.savannah.gnu.org/hgweb/octave/rev/e2061085dc5e

But BTW I noticed that switching from fltk to qt reverses the order of buttons in the toolbar. Not sure I will spend some time to track this issue.

Pantxo Diribarne <pantxo>
Group Member
Thu 06 Jun 2019 05:44:50 PM UTC, original submission:  

The graphics_toolkit() function can be used to switch an existing plot from one backend to another.  However, this is no longer true for 'qt' plots which have a uitoolbar object.

This isn't tragic as I don't believe the functionality is used often.  And gnuplot is no longer a preferred backend for plotting.  Still, if it was easy to restore functionality we should.

Sample code


close all
graphics_toolkit ("qt");
hf = figure;
plot (1:10, "o-");
graphics_toolkit (hf, "gnuplot")
error: __gnuplot_draw_figure__: unknown object class, uitoolbar
error: called from
    __gnuplot_draw_figure__ at line 179 column 13
    __gnuplot_drawnow__ at line 86 column 5



Rik <rik5>
Group administrator

 

(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 pantxo (Posted a comment)
  • -email is unavailable- added by rik5 (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-06-07 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-06-07 pantxo StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code