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.
That's not a bug, but gnuplot's enhanced text mode, which is switched on by default since 5.0. Use
or
Last edit: Christoph Bersch 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