bugGNU Octave - Bugs: bug #47907, TeX interpreter rgb color syntax...

 
 

bug #47907: TeX interpreter rgb color syntax not documented

Submitted by:  None
Submitted on:  Thu 12 May 2016 01:53:46 PM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Denis SipchenkoOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.2
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

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.

Rik <rik5>
Project Administrator
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.

Mike Miller <mtmiller>
Project Administrator
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.

Rik <rik5>
Project Administrator
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.

Mike Miller <mtmiller>
Project Administrator
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...

Michael Godfrey <godfrey>
Project Member
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?

Mike Miller <mtmiller>
Project Administrator
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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #37141:  BugPackReport.zip added by None (22KiB - application/x-zip-compressed)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 17 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 24 May 2016 06:51:01 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 13 May 2016 03:54:51 PM UTCmtmillerDependencies-=>Depends on bugs #45301
    Fri 13 May 2016 03:42:41 PM UTCmtmillerDependencies-=>Depends on bugs #42320
    Fri 13 May 2016 03:42:16 PM UTCmtmillerDependencies-=>Depends on bugs #44338
    Fri 13 May 2016 03:41:54 PM UTCmtmillerDependencies-=>Depends on bugs #44765
    Fri 13 May 2016 03:10:26 PM UTCrik5SummaryTeX rgb color syntax not handled=>TeX interpreter rgb color syntax not documented
    Fri 13 May 2016 03:04:43 PM UTCrik5Item GroupIncorrect Result=>Documentation
      StatusWorks For Me=>Confirmed
    Fri 13 May 2016 03:04:42 PM UTCrik5CategoryPlotting with OpenGL=>Documentation
    Thu 12 May 2016 11:05:48 PM UTCmtmillerStatusNeed Info=>Works For Me
    Thu 12 May 2016 06:45:41 PM UTCmtmillerCategoryPlotting=>Plotting with OpenGL
      Item GroupSegfault, Bus Error, etc.=>Incorrect Result
      StatusNone=>Need Info
      Operating SystemMicrosoft Windows=>Any
      SummaryPlot with tex legend=>TeX rgb color syntax not handled
    Thu 12 May 2016 01:53:46 PM UTCNoneAttached File-=>Added BugPackReport.zip, #37141

    Back to the top


    Powered by Savane 3.1-cleanup1