Menu

#1417 With the 'qt' terminal, the initial window size is incorrect

closed-duplicate
nobody
None
5
2015-03-23
2014-06-05
No

With the gnuplot-qt 4.6.5-4 Debian package under Debian/unstable and the 'qt' terminal (which is now the default), the initial window size is incorrect. This can be seen with fvwm's active placement (because the frame of the initial window is displayed until the window is placed by the user).

The consequences are the following if the window manager places the window depending on its initial size:

  • The window can be partly off-screen.
  • The window can cover other windows (in particular the one that is used to run gnuplot from a shell), even though there is enough empty space for it elsewhere.

I could reproduce both problems on my machine.

The testcase:

$ gnuplot -persist <<EOF
plot '-' using 1:2 t '' with line
0 0
10 10
e
EOF

There is no such problem if one uses "set terminal wxt" (when it was working, i.e. with libwxgtk2.8-0) or "set terminal x11".

Discussion

  • Ethan Merritt

    Ethan Merritt - 2014-06-05

    I don't understand the report. You have not specified a size in the "set term" command, so on what basis do you conclude it is the "wrong" size?

    If you say "set term qt size 500,300" or whatever, do you not get that size?

     
    • Vincent Lefevre

      Vincent Lefevre - 2014-06-05

      gnuplot opens the window with some size, then resizes it to its final size, leading to the observed problem.

      If I write "set term qt size 500,300", the problem is the same: the initial size is wrong and the final size is 500×300.

      In xtrace output, I see lots of "width=243 height=113". I wonder whether this is related to this problem.

       
  • Vincent Lefevre

    Vincent Lefevre - 2014-06-05

    Well, the initial size is approximately 243×113, so that these "width=243 height=113" are probably related to this problem.

     
  • Ethan Merritt

    Ethan Merritt - 2014-06-05

    OK. You are probably seeing the same problem that is being tracked on this ticket:

    https://sourceforge.net/p/gnuplot/patches/661/

    As you will see there, this problem is reproducible on some machines but not others. At least one of the other reporters is using Debian, for whatever that is worth. There is a patch there as well.

     
  • Vincent Lefevre

    Vincent Lefevre - 2014-06-06

    I don't know, the code has significantly changed. There's no !parent->isVisible() test in 4.6.5.

     
  • Ethan Merritt

    Ethan Merritt - 2014-07-04

    Duplicate - see Bug 661

     
  • Ethan Merritt

    Ethan Merritt - 2014-07-04
    • status: open --> closed-duplicate
     

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.