Menu

#459 qt term does not suppoer linewidth option

None
closed-accepted
nobody
5
2017-03-20
2017-01-19
aslash
No

As title says, the qt term does not accept the linewidth option like other terms, while manually specifying it on a plot command works as expected.
is there a reason for this?

Discussion

  • Tatsuro MATSUOKA

    What version gnuplot do you use?
    At least gnuplot 5.0.5 on windows, qt terminal supports linewidth option.

     
  • Tatsuro MATSUOKA

    Sorry I have misled. You are right.
    On gnuplot 5.0.5 and 5.1(cvs), windows and wxt terminals support linewidth option but qt does not.

    gnuplot> set term wxt linewidth 2
    Terminal type set to 'wxt'
    Options are '0 lw 2 enhanced'
    gnuplot> set term qt linewidth 2  
    Terminal type set to 'qt'
             undefined variable: linewidth
    
     
  • aslash

    aslash - 2017-01-30

    using 5.0.5 on linux

     
  • Ethan Merritt

    Ethan Merritt - 2017-02-08

    No particular reason that I know of. It was never on the list of features that all terminals should support, so people writing new terminals did not necessarily implement it.

    Here are patches to add "linewidth <lt>" as a terminal option to qt and to aquaterm. I cannot test aquaterm myself, so any feedback on whether it works (or even compiles!) would be a good thing.

     
  • Tatsuro MATSUOKA

    Ethan
    Thanks for preparing patches. I cannot also test aqua term.
    I have tested your patch for qt terminal on windows.

    Build went well.

    linewidth option works with full "linewidth" keyword

    gnuplot> set term qt linewidth 2
    Terminal type set to 'qt'
    Options are '0 font "Sans,9" linewidth 2'
    

    but does not work in abbreviated style

    gnuplot> set term qt lw 2
    Terminal type set to 'qt'
             undefined variable: lw
    

    While in wxt, it works in abbreviated style

    gnuplot> set term wxt lw 2
    Terminal type set to 'wxt'
    Options are '0 lw 2 enhanced'
    
     
  • Ethan Merritt

    Ethan Merritt - 2017-02-09
    • status: open --> pending-accepted
    • Group: -->
     
  • Ethan Merritt

    Ethan Merritt - 2017-02-09

    "linewidth <lw>" option added to "set term" and "set termoption" for aquaterm, qt, and wxt terminals in CVS for 5.0 and 5.1.

     
  • Tatsuro MATSUOKA

    I have confirmed linewidth option works no set term and set termoption on qt on windows build.
    Thanks.

     
  • Mojca Miklavec

    Mojca Miklavec - 2017-02-10

    Ethan, can you please also apply the attached patch (linewidth.diff)?

     
  • Ethan Merritt

    Ethan Merritt - 2017-02-10

    Done.

     
  • aslash

    aslash - 2017-03-01

    thanks!

     
  • Ethan Merritt

    Ethan Merritt - 2017-03-20
    • status: pending-accepted --> closed-accepted
     

Log in to post a comment.