bugGNU Octave - Bugs: bug #49157, textbox annotation generates an...


bug #49157: textbox annotation generates an error with gnuplot backend

Submitted by:  Francesco Potortì <pot>
Submitted on:  Thu 22 Sep 2016 11:46:55 AM UTC  
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  4.0.3 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 22 Sep 2016 08:36:45 PM UTC, comment #4: 

Confirm here also, works correctly in 4.2.0-rc2, fails with the reported error message in 4.0.3.

Mike Miller <mtmiller>
Project Administrator
Thu 22 Sep 2016 08:19:22 PM UTC, comment #3: 

Works "fine" here as well.  That error message is coming from this line:

    switch (obj.type)
      case "image"
        error ("__gnuplot_draw_axes__: unknown object class, %s", obj.type);

which is a very long switch statement that processes all the various graphics objects.  Somehow a uicontextmenu was making its way through to the _gnuplot_draw_axes_.m file.  In the latest code, _gnuplot_draw_figure_.m has this check on the object:

          case {"uimenu", "uicontextmenu"}
            ## ignore uimenu objects
            kids(i) = [];
            error ("__gnuplot_draw_figure__: unknown object class, %s", type);

Hence, the latest code is weeding out the 'uicontextmenu' objects.  I'm guessing that wasn't in Octave release 4.0.3 yet.

Dan Sebald <sebald>
Thu 22 Sep 2016 08:18:56 PM UTC, comment #2: 

I could reproduce this bug with version 4.0.3 on Windows, but not with 4.2.0-rc1.
The fix will be a part of the 4.2 release which is expected in the near future.

Closing as fixed.

Avinoam Kalma <avinoam>
Project Member
Thu 22 Sep 2016 06:09:10 PM UTC, comment #1: 

Works fine in 4.2.0-rc1 on Windows; but I see no reason for it to not work on Linux.

That is, the text box could be bigger but no errors - pic attached.

I'll leave this open for other devs to confirm or modify.

Philip Nienhuis <philipnienhuis>
Project Member
Thu 22 Sep 2016 11:46:55 AM UTC, original submission:  

> close all
> graphics_toolkit gnuplot
> plot(1:2)
> annotation('textbox', [0.5 0.5 0.5 0.5], 'string', "text")
error: __go_draw_figure__: unknown object class, uicontextmenu
error: called from
    __go_draw_figure__ at line 187 column 13
    __gnuplot_drawnow__ at line 86 column 5

Francesco Potortì <pot>


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

Attach Files:

Attached Files
file #38588:  49157_pic1.png added by philipnienhuis (14KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by pot (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-22 avinoam StatusNone => Fixed
        Open/ClosedOpen => Closed
    2016-09-22 philipnienhuis Attached File- => Added 49157_pic1.png, #38588

    Back to the top

    Powered by Savane 3.5