Menu

#2004 set title 'S&P 500 finance data' works with 4.6 but not 5.2

None
closed-not-a-bug
nobody
None
2018-04-28
2017-12-21
Anonymous
No

The txt file below documents the bug described above in the create ticket. When plotting finance data I often have S&P 500 in the title, but in version 5.2 the & erases the P in the title when the data is plotted. The version and operating system details are in the ascii txt file attached. Thank you.

1 Attachments

Discussion

  • Christoph Bersch

    That's not a bug, but gnuplot's enhanced text mode, which is switched on by default since 5.0. Use

    set termoption noenhanced
    

    or

    set title "S&P" noenhanced
    
     

    Last edit: Christoph Bersch 2017-12-21
  • Christoph Bersch

    • status: open --> open-not-a-bug
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2017-12-21

    For some time now gnuplot has defaulted to using the "enhanced text" mode, in which & is a mark-up character. You can either escape the & in the enhanced text string:
    "S\&P 500"
    or you can mark the string as not using enhanced text mode:
    set title "S&P 500" noenhanced

    If you want this always to be true, you can put a command in your initialization file ~/.gnuplot
    set title noenhanced

     
  • Ethan Merritt

    Ethan Merritt - 2018-04-28
    • Status: open-not-a-bug --> closed-not-a-bug
     

Log in to post a comment.

MongoDB Logo MongoDB