bugGNU Octave - Bugs: bug #42063, Gnuplot-compatible command does...


bug #42063: Gnuplot-compatible command does not work with FLTK

Submitted by:  Max Görner <maxg>
Submitted on:  Mon 07 Apr 2014 08:50:00 AM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  3.8.0 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.


( Jump to the original submission)

Tue 08 Apr 2014 04:56:35 PM UTC, comment #7: 

Oops, you are right. I was misled by my
own example. Time to fix #41128...

Michael Godfrey <godfrey>
Project Member
Tue 08 Apr 2014 12:59:28 PM UTC, comment #6: 

Actually it is clear from this example that fltk does operate on h as a vector. If you run the snippet over i = 1:4, there is no error.

The error is due to the (5,1,4) subplot disappearing when the (5,1,5) subplot is drawn, and therefore h(4) no longer refers to a valid graphics handle. This is exactly the same as bug #41128.

Mike Miller <mtmiller>
Project Administrator
Tue 08 Apr 2014 08:38:25 AM UTC, comment #5: 

Not to worry. It is clear that fltk does not
understand h as a vector. After that is fixed
the question of the correctness of the
sub plots can be looked at.

Michael Godfrey <godfrey>
Project Member
Tue 08 Apr 2014 08:11:08 AM UTC, comment #4: 

I'm very sorry.

set(h, 'box', 'off'); #LINE 6
error: set: invalid handle (= -30.5009)
octave:3> h
h =

  -12.629  -18.298  -24.640  -30.501  -35.005

I hope this helps.

Max Görner <maxg>
Mon 07 Apr 2014 06:33:12 PM UTC, comment #3: 

Agree with Jordi here, please always say what the error you are seeing is. As it is, I have to assume that the error you are getting is the same as what I'm getting.

Nevertheless, running your example gives me the following error:

error: set: invalid handle (= -30.3303)

and an obviously missing subplot(4,1,4). Assuming that's the error you are seeing, all this points to this being exactly the same as bug #41128, so closing as duplicate.

Mike Miller <mtmiller>
Project Administrator
Mon 07 Apr 2014 05:38:39 PM UTC, comment #2: 
Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Mon 07 Apr 2014 10:11:29 AM UTC, comment #1: 

Confirmed in current devel system.

for i=1:5
   h(i) = subplot(5,1,i);
   set(h(i), 'box','off');
works.  So, it appears at least that fltk
does not handle the vector case correctly.

Michael Godfrey <godfrey>
Project Member
Mon 07 Apr 2014 08:50:00 AM UTC, original submission:  

Hey there,
I was looking for some help and found the following code:

figure('color', 'w');
for i=1:5
   h(i) = subplot(5,1,i);
set(h, 'box', 'off'); #LINE 6


Let us ignore the fact, that 'linkaxes' is missing. If I set

Max Görner <maxg>


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

Attach Files:

No files currently attached


   bug dependencies.

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 jordigh (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by maxg (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-07 mtmiller CategoryPlotting => Plotting with OpenGL
        StatusNeed Info => Duplicate
        Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #41128
    2014-04-07 jordigh StatusNone => Need Info

    Back to the top

    Powered by Savane 3.5