Menu

#1684 line endings with cairo terminals

None
closed-fixed
nobody
cairo (8)
2019-12-04
2015-10-12
No

The cairo terminals do not report the line ending setting correctly after a previous change:

set term wxt round                   
    Terminal type set to 'wxt'
    Options are '0 enhanced rounded'
set term wxt # looks like this returns to the default        
    Terminal type set to 'wxt'
    Options are '0 enhanced'
set arrow nohead from -5,0 to 5,0 lw 6
set grid
plot x    # but in fact doesn't

And I noticed that wxt defaults to square line endings, while pdfcairo uses butt. Is that intended?
The line ending settings for wxt are not documented, btw., and for pdfcairo/pngcairo, the docs look like there was half a sentence accidentially deleted or so.

Discussion

  • Bastian Märkisch

    What you see here is that the cairo terminals do mostly include only those options which actually changed in the last set term command in the options string. The options themself are not reset to their defaults. That behaviour should be changed inmho.
    If the different line endings were really intended, I do not know.

     
  • Karl Ratzsch

    Karl Ratzsch - 2018-05-12

    Any idea what the end part (in italics) of this scentence from the help on pdfcairo/pngcairo

    rounded sets line caps and line joins to be rounded;
    butt is the default, butt caps and mitered joins.

    means?

    And what's the difference between butt and square? I couldn't see any.

    set samp 15
    set term wxt 0 lw 8 rounded
    plot [-10:10] [-1.2:1.2] sample [-8:8] sin(x)
    set term wxt 1 lw 8 square; rep
    set term wxt 2 lw 8 butt; rep
    

    (now I noticed, square let's the line end extend over the last point by lw/2)

    Btw. the line ending options are missing from the help on term wxt.

     

    Last edit: Karl Ratzsch 2018-05-12
  • Ethan Merritt

    Ethan Merritt - 2019-12-04
    • status: open --> closed-fixed
    • Group: -->
    • Priority: -->
     

Log in to post a comment.

MongoDB Logo MongoDB