Menu

#520 Enable '\times' in plot legends and labels

v1.1.x
fixed
None
v1.1.2
Bug Fix
2020-04-23
2020-04-23
Erik Hänel
No

The LaTeX macro \times is not available in plot legends and labels, because the string parser will misinterpret it as a masked tabulator character.

Analysis:

The string parser member function

string StringParser::createStringOutput()

replaces the masked tabulator character and also checks already for greek letters like \theta. Expand the corresponding condition to look for \times as well.

Implementation:

  • Implementation: The implementation was done as proposed by the analysis.
  • Revision: [r699]
  • Implementation test: The corresponding LaTeX macro was used as a legend for a plot without deviation.

Documentation:

  • [x] ChangesLog updated
  • [ ] Code changes commented
  • Documentation articles:
    • [ ] corresponding documentation articles updated
    • [ ] new documentation articles created
    • [x] not needed
  • Language files:
    • [ ] corresponding language files updated
    • [x] not needed

Tests:

Bug fix was added to the automatic SW tests. Occured deviation was fixed with [r701].

Related

Commit: [r699]
Commit: [r701]

Discussion

  • Erik Hänel

    Erik Hänel - 2020-04-23
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2020-04-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,23 @@
     The LaTeX macro `\times` is not available in plot legends and labels, because the string parser will misinterpret it as a masked tabulator character.
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* [ ] ChangesLog updated
    +* [ ] Code changes commented
    +* **Documentation articles:**
    
    +    * [ ] corresponding documentation articles updated
    +    * [ ] new documentation articles created
    +    * [ ] not needed
    +* **Language files:**
    +    * [ ] corresponding language files updated
    +    * [ ] not needed
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2020-04-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,11 @@
     The LaTeX macro `\times` is not available in plot legends and labels, because the string parser will misinterpret it as a masked tabulator character.
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +The string parser member function
    
    +    
    +    string StringParser::createStringOutput()
    +
    +replaces the masked tabulator character and also checks already for greek letters like `\theta`. Expand the corresponding condition to look for `\times` as well.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
    • Version: v1.1.1 --> v1.1.2
     
  • Erik Hänel

    Erik Hänel - 2020-04-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,20 +8,20 @@
     replaces the masked tabulator character and also checks already for greek letters like `\theta`. Expand the corresponding condition to look for `\times` as well.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: The implementation was done as proposed by the analysis.
    +* Revision: [r699]
    +* Implementation test: The corresponding LaTeX macro was used as a legend for a plot without deviation.
    
     ###Documentation:
    -* [ ] ChangesLog updated
    +* [x] ChangesLog updated
    
     * [ ] Code changes commented
     * **Documentation articles:**
         * [ ] corresponding documentation articles updated
         * [ ] new documentation articles created
    -    * [ ] not needed
    +    * [x] not needed
     * **Language files:**
         * [ ] corresponding language files updated
    -    * [ ] not needed
    +    * [x] not needed
    
     ###Tests:
     (*Describe, which tests you performed and their outcome*)
    
    • status: implementing --> testing
     

    Related

    Commit: [r699]

  • Erik Hänel

    Erik Hänel - 2020-04-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -24,4 +24,4 @@
    
         * [x] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Bug fix was added to the automatic SW tests. Occured deviation was fixed with [r701]. 
    
    • status: testing --> fixed
     

    Related

    Commit: [r701]

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB