On Fri, 16 Oct 2015, Artur Tarassow wrote:
If I remember correctly, the Latex-type "a\_b" works.
Yes, that's right: that gives you an underscore when gnuplot text is
in "enhanced" mode. The difficulty across gnuplot versions is that if
you do that in gnuplot 4 (by default in non-enhanced mode) you get a
literal backslash-underscore sequence.
Allin
Am 16. Oktober 2015 02:38:45 MESZ, schrieb Allin Cottrell
<cottrell(a)wfu.edu>:
> On Thu, 15 Oct 2015, Matteo Pelagatti wrote:
>
>> Hi all,
>> I am having a problem with the titles of the plots saved as pdf or
> eps when
>> variable names include underscores.
>> It seems like underscores are interpreted as in LaTeX formulas when
> the plot
>> is saved as pdf and eps.
>> Is this a bug? Is there a workaround?
>> I attach the same plot saved as bmp and pdf and you'll see the
> difference.
>
> This is due to a change in behavior in gnuplot 5 relative to earlier
> versions. Before, an underscore was by default just an underscore
> but now "enhanced" mode is the default for titles, labels and so on,
> and in that mode underscore produces a subscript.
>
> In gretl's standard PNG output we've turned off enhanced mode to
> avoid that problem but it seems we've forgotten to do that for pdf
> and eps (?). The trick is to include "noenhanced" in the line
> of the gnuplot file that selects the "terminal" (output) type.
> I'll look into it.
>
> Allin Cottrell
> _______________________________________________
> Gretl-users mailing list
> Gretl-users(a)lists.wfu.edu
>
http://lists.wfu.edu/mailman/listinfo/gretl-users
--
Allin Cottrell
Department of Economics
Wake Forest University, NC