Menu

#1818 gnuplot-qt: x window resizing is broken

None
closed-fixed
nobody
None
2016-07-20
2016-06-17
AntonG
No

Dear gnuplot developers,

the following bug was originally reported in Debian [1].

[1] https://bugs.debian.org/827351

============================
Dear Maintainer(s),

trying to resize a gnuplot x window terminates the program.

Using as example a file "gpex.dat" with content

set xdata time
set timefmt "%d.%m.%Y"
set format x"%d.%m.%Y"
plot '-' using 1:2 with lines ; pause -1 "Hit return to continue"

15.01.2011 1507
15.02.2011 1786
15.03.2011 2036
15.04.2011 2278
16.05.2011 2520

and commanding

$ gnuplot gpex.dat

opens a new window. With version 4, this window could be resized but now,
trying to do that terminates gnuplot.

Regards,
jvp.

==============================

Thank you

Discussion

  • Ethan Merritt

    Ethan Merritt - 2016-06-18
    • status: open --> open-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2016-06-18

    Resizing in general is not broken. It seems to be the specific combination of in-line data + replot.
    Current CVS does not suffer from this. I have found only one point of difference between 5.0 and current CVS that seems relevant. Copying the 5.1 code into 5.0 fixes the reported test case, so let's go with that. This is a one-liner if someone wants to pick up the fix immediately rather than wait for relase of 5.0.4

    --- gnuplot50/src/mouse.c       2015-07-12 21:08:34.000000000 -0700
    +++ fixed/src/mouse.c  2016-06-17 21:07:51.175539577 -0700
    @@ -2239,7 +2239,7 @@ do_event(struct gp_event_t *ge)
                break;
            if (multiplot)
                break;
    -       do_string("replot");
    +       do_string_replot("");
            break;
         case GE_reset:
            event_reset(ge);
    
     
  • AntonG

    AntonG - 2016-06-18

    Thanks, Ethan, it really solves the problem. I have applied the patch in Debian.

     
  • Ethan Merritt

    Ethan Merritt - 2016-07-20
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.