Tue 24 May 2016 06:51:01 PM UTC, comment #6:
I documented the RGB color syntax on the stable branch in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/7496bd7265d9). I've also pulled it across to the development branch.
Fixed, closing report.
|
Fri 13 May 2016 03:41:42 PM UTC, comment #5:
For completeness, the transparent legend issue mentioned here is bug #44765, which is fixed on the default branch (meaning it will be fixed in Octave 4.2.0). The TeX markup not printing is bug #42320, also fixed on the default branch. The ghostscript error in one of the OP's examples is probably due to the lack of handling of TeX markup and it interfering with postscript markup, when I drop the TeX syntax there is no error. In short, all fixed on the default branch for Octave 4.2.0.
|
Fri 13 May 2016 03:04:43 PM UTC, comment #4:
Octave follows Matlab syntax. See http://www.mathworks.com/help/matlab/creating_plots/greek-letters-and-special-characters-in-graph-text.html.
I'm changing this bug report once again. The new category is Documentation. The section in the manual at 15.2.8 which describes the "interpreter" property needs updating. It describes everything but the color and color[rgb] syntaxes.
There is another inaccuracy, at least on the dev branch, because the docs say that the special Tex symbols are only available onscreen, and not in printed results. This has been fixed as well.
This is an easy modification suitable for anyone wanting to contribute to Octave. The file to modify is doc/interpreter/plot.txi. If someone can upload a changeset or diff Mike or I can review.
|
Thu 12 May 2016 11:05:48 PM UTC, comment #3:
Ok, I deduced from a combination of looking at the Octave TeX parser and the TeX xcolor package documentation
http://mirror.unl.edu/ctan/macros/latex/contrib/xcolor/xcolor.pdf
that the syntax that Octave supports for arbitrary RBG colors is this:
and this does work for me. The syntax used in the sample written by the OP seems wrong. So marking as works for me, leaving open for a few days for a response.
|
Thu 12 May 2016 09:04:13 PM UTC, comment #2:
For:
\color{[1 0 0]}{Hello world}
TeX says:
There is not much chance that Matlab compatibility is
involved here, so...
|
Thu 12 May 2016 06:45:41 PM UTC, comment #1:
Thanks for your bug report. For the future, bug reports that contain multiple issues are hard to deal with, it is much better and easier for us if separate issues are reported individually. I'll do my best to address these.
1. I think this is a known problem, looks exactly like bug #44338. Thanks for confirming.
2. Your submitted files show that bold works, but your color syntax doesn't work, that may be a bug.
The following syntax does work
if that is a viable workaround for you.
3. I don't see any transparency, it looks like a solid legend box to me with no visible grid lines. Am I reading this wrong or looking at the attached image wrong?
So I'm retitling this to the single remaining issue, that appears to be a TeX color syntax that doesn't work.
I'm not TeX expert, so bowing out now, but here are a couple of simple examples.
This works in Octave
But the following does not work, using the syntax provided by the OP in this bug report.
Is this valid TeX syntax? Is this syntax supported by Octave?
|
Thu 12 May 2016 01:53:46 PM UTC, original submission:
1) Don't save invisible figures ('visible', 'off'), like in MATLAB
2) legend - tex interpreter stylished text not saved
3) legend - saved with transparent color (visible gridlines under text)
Simple CODE example and OUTPUT in attachment
|