bugGNU Octave - Bugs: bug #54035, "tab" character is...

 
 

bug #54035: "tab" character is ignored in strings in plot

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Sat 02 Jun 2018 10:00:52 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 02 Jun 2018 02:16:45 PM UTC, comment #2: 

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Sat 02 Jun 2018 10:19:37 AM UTC, comment #1: 

I pushed a changeset here:
http://hg.savannah.gnu.org/hgweb/octave/rev/24bf1d9dd834

I rather arbitrarily chose to advance to the next multiple of 4 times the width of the space character of the currently selected font. If that should turn out to be a bad/incompatible choice, we can always change that later.

I am also attaching a screenshot of the example in comment #0.

Marking as ready for test.


Markus Mützel <mmuetzel>
Group administrator
Sat 02 Jun 2018 10:00:52 AM UTC, original submission:  

Originally reported on the mailing list. [1]
When adding strings to plots, any "tab" characters are ignored and a warning is displayed.
Example:

clf;
axes ();
var=456;
str= sprintf ('Signal\t\tMaxFreq\nnextline\t%d', var);
annotation ('textbox', ...
  [0.15 0.65 0.3 0.15], ...
  'String', {str}, ...
  'FontSize', 14, ...
  'FontName', 'Arial', ...
  'LineStyle', '--', ...
  'EdgeColor', [1 1 0], ...
  'LineWidth', 2, ...
  'BackgroundColor', [0.9  0.9 0.9], ...
  'Color', [0.84 0.16 0]);


I'll push a patch as soon as I have a bug number.

[1]: http://octave.1599824.n4.nabble.com/How-can-I-add-tabs-to-strings-in-Octave-plot-td4688166.html

Markus Mützel <mmuetzel>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #44276:  text_renderer_tab.png added by mmuetzel (28KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-02 mmuetzel StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-06-02 mmuetzel Attached File- Added text_renderer_tab.png, #44276
        StatusIn Progress Ready For Test

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code