Menu

#1586 spacing between key title and entries not respecting enchanced text

None
closed-fixed
nobody
None
2016-01-28
2015-03-27
Anonymous
No

GNUPLOT 5, patch level 0 - Cygwin.

Hi,
when I create a key with a title and with superscript entries in the key there seems to be incorrect spacing between the title and entries. In the attached example, created with postscript terminal, you will see that the key title overlaps with the line separating it from the rest of the key. Here I have used "spacing 1.5", but no value seems to change the separation between the key title and first row of key entries.

1 Attachments

Discussion

  • Karl Ratzsch

    Karl Ratzsch - 2015-03-27

    The spacing actually seems to create that problem, vertical spacing with "spacing 1" looks fine. Except that the box around the key is not wide enough if there is a superscript in the plot label.

    set key box title "title" spacing 1
    plot x**2 title "x^2" # vertical spacing OK, but box width too small
    

    However with "spacing 1.5", the position of the line between title and keys stays put, so it overlaps with the top key label:

    set key box title "title" spacing 1.5 
    plot x**2 title "x^2"
    

    If there also is a sub-/superscript in the key title, the line moves, but the whole legend looks a bit malformed then.

    set key box title "title^2" spacing 1.5 
    plot x**2 title "x^2"
    
     
  • Ethan Merritt

    Ethan Merritt - 2015-11-06

    Now fixed for cairo terminals. A similar fix may be needed for other terminals. Not sure.

     
  • Ethan Merritt

    Ethan Merritt - 2015-11-06
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2016-01-28
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.