Sat 26 Sep 2015 01:36:02 AM UTC, comment #1:
I think there are several problems going on here. This is one of the reasons why Octave is slowly moving away from gnuplot.
First, a simpler example for me to use is
which produces the text
on the screen.
This is the correct syntax for versions of gnuplot < 5.0, but it seems that gnuplot also wants the whole string enclosed by curly braces.
If I use the above code then the resulting printed output has bold text. Whether the onscreen viewer will have bold text depends on the capabilities of the terminal you are using.
So, it seems that things could be improved here if you are interested. The code is contained in the m-file _gnuplot_draw_axes_.m. The function to modify is _tex2enhanced_.
I think get_fontname_and_size needs to be changed to start with the following.
That way the fnt variable will expand to the null string in _tex2enhanced_ in
But there is still the problem of wrapping everything in curly braces.
For versions of gnuplot greater than 5.0 a different syntax may be necessary according to this bug report (http://sourceforge.net/p/gnuplot/bugs/1240/).
|
Wed 23 Sep 2015 12:51:38 PM UTC, original submission:
$ octave --no-site-file --no-init-file --no-gui
GNU Octave, version 4.0.0
...
>> graphics_toolkit gnuplot
>> plot(1:2)
>> text(1.5, 1.5, "\\bfccc")
The text on the plot is "/-boldccc"
|