Error in TeX symbols in displayed plot
Michael D. Godfrey
godfrey at isl.stanford.edu
Wed Apr 2 13:46:42 CDT 2008
I looked more at this problem (the problem being that
characters in exponentiated terms do not display correctly).
The problem is that gnuplot does not interpret the string as Octave
apparently expects.
In the example that I sent before (I changed from "text" to
"title" for convenience), gnuplot is sent:
set title " E({/Symbol l}) = (8{/Symbol p} c/({/Symbol l}^5))/({/Symbol
l} e^{{/Symbol l} hc/(kT{/Symbol l})}-1){/Symbol l})" font
"Helvetica,10" enhanced;
The terms "/Symbol l" that are in the exponent appear as "l".
If the gnuplot command is changed to:
set title " E({/Symbol l}) = (8{/Symbol p} c/({/Symbol l}^5))/({/Symbol
l} e^{{/Symbol=10 l} hc/(kT{/Symbol=10 l})}-1){/Symbol l})" font
"Helvetica,10" enhanced;
the Symbols in the exponent are displayed correctly. They even appear to
be the
right font size, but this is hard to judge on the screen: they may be 10.
I tried using what the gnuplot Manual claims is a scalable font (arial)
as in their example
on pg. 192, but this did not work. I also tried changing all /Symbol to
/Symbol=10. This
did seem to work, but might have other side effects that I am not aware of.
So, I think that someone with more detailed knowledge of the font
handling in both
Octave and gnuplot should look at this before a changeset is generated.
I hope this helps.
Michael Godfrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080402/4354ef76/attachment.html
More information about the Bug-octave
mailing list