bugGNU Octave - Bugs: bug #55164, wrong LaTeX text position when...

 
 

bug #55164: wrong LaTeX text position when printing to SVG format

Submitter:  Leonardo <pocker>
Submitted:  Wed 05 Dec 2018 12:22:28 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.4.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 05 Dec 2018 07:30:27 AM UTC, comment #2: 

Thanks for your report. Indeed, the svg figure is displayed correctly if I use Firefox or Inkscape (or inkview) to view it. On the other hand if I use a rsvg based viewer ("rsvg-view-3" in my case) I observe the overlapping text you describe.
We use character-wise text positioning in SVG (and in EPS), to provide as much WYSIWYG experience as possible, and this feature is supported by many SVG viewers. Actually, in my experience, rsvg is the only viewer that doesn't support it so I'll close this report as "Invalid".

On my platform (linux mint 19), I switched to "inkview" for the default SVG viewer. It is a light viewer and it is quite full featured from a rendering point of view.

Pantxo Diribarne <pantxo>
Group Member
Wed 05 Dec 2018 12:57:03 AM UTC, comment #1: 

I realized that it could be a bug in the viewer and not in octave.

Let me know if it is a bug in octave or not.

Thanks

Leonardo <pocker>
Wed 05 Dec 2018 12:22:28 AM UTC, original submission:  

when printing a plot to SVG format, LaTeX text is placed "over" other texts (see figure1.svg attached)

printing to another format produces correct results (see figure2.png attached)

code example:


clear all
close all
x = linspace(0,2*pi,64);
y = cos(pi*x/2);
plot(x,y)
hold on
text(3,0,'y(x) = cos(\pi x/2)','fontsize',20)
hold off
print -dsvg figure1.svg
print -dpng figure2.png


Leonardo <pocker>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45581:  figure1.svg added by pocker (9KiB - image/svg+xml)
file #45582:  figure2.png added by pocker (20KiB - 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 pocker (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-12-05 pantxo StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2018-12-05 pocker Attached File- Added figure1.svg, #45581
        Attached File- Added figure2.png, #45582

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code