bugGNU Octave - Bugs: bug #53206, Print function adding spaces to...

 
 

bug #53206: Print function adding spaces to labels (specifically related to superscript &subscript)

Submitter:  William Donahue <wdonah2>
Submitted:  Thu 22 Feb 2018 04:17:06 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  William Donahue Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 22 Feb 2018 09:56:53 PM UTC, comment #2: 

Yes that worked. Hopefully this bug ticket will help other people find the answer.

William Donahue <wdonah2>
Thu 22 Feb 2018 09:03:10 PM UTC, comment #1: 

This bug has fixed on the default branch (that will become Octave 4.4). I can workaround it by changing my default font to be "Helvetica" (one of the only fonts the opengl printing system supports):


set (0, "defaulttextfontname", "Helvetica")
set (0, "defaultaxesfontname", "Helvetica")
...


Does this work for you?


Pantxo Diribarne <pantxo>
Group Member
Thu 22 Feb 2018 04:17:06 PM UTC, original submission:  

Octave print function adds 3 additional spaces proceeding subscript and superscript regions. This occurs independent of renderer used and output file format. On screen representation is correct however.

The code below is the minimum reproducible example. Note, the on screen version looks fine, while the saved image does not.


close all
clear all
x = -10:10;
y = x.^2+5*x+7;

h=figure()
plot (x,y ,'o')
text (-4,50,"Example Error (mm^{3})")
xlabel("blah blah (unit_{8})")
ylabel("more blah (unit2^{28}_3)")

%occurs independent of graphics_toolkit and output format
print(h, "BugImage.eps","-depsc");


System Info:
GNU Octave, version 4.2.1 configured for "x86_64-redhat-linux-gnu"
Fedora 26 (4.15.3-200.fc26.x86_64)

Let me know if you need any more info



William Donahue <wdonah2>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #43384:  OnscreenRender.png added by wdonah2 (27KiB - 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 pantxo (Posted a comment)
  • -email is unavailable- added by wdonah2 (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-02-22 pantxo StatusNone Fixed
        Open/ClosedOpen Closed
    2018-02-22 wdonah2 Attached File- Added OnscreenRender.png, #43384
        Attached File- Added ImageCreatedWithPrint.png, #43385

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code