Menu

#2215 Line spacing changing between 1st and following plots in Gnuplot

None
closed-fixed
nobody
None
2019-12-03
2019-11-26
Anonymous
No

If the same label (in a font different than that of the plot) is used in a series of plots, the line spacing in the first of them seems to follow the plot's font, i.e., it's considerably larger or smaller than in the remaining plots:

1st plot 2nd plot

Setting the key spacing has no influence on this behavior. And this doesn't happen when label and plot fonts are the same.

How can that be avoided?

Here's a minimal code that produces the plots above:

    set terminal png size 200,200
    set label "1st line\n2nd line" font "monospace, 8"
    set output "1.png"
    plot x
    set output "2.png"
    plot x

Gnuplot 5.2 patchlevel 6, under Linux, was used.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2019-11-26

    Huh.
    I can reproduce that with the gdlib png terminal, but not with the pngcairo terminal.
    So the immediate workaround is to use "set term pngcairo".
    I will look for a bug in the libgd terminal support.

     
  • Ethan Merritt

    Ethan Merritt - 2019-11-27

    Fixed in 5.2.8, which will be released by the end the month

     
  • Ethan Merritt

    Ethan Merritt - 2019-11-27
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2019-12-03
    • Status: pending-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.