bugGNU Octave - Bugs: bug #35270, Octave plot svg output lacks the...

 
 

bug #35270: Octave plot svg output lacks the width and height parameters

Submitter:  None
Submitted:  Mon 09 Jan 2012 09:42:32 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Dov Grobgeld Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.4.3
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Mar 2013 02:11:28 AM UTC, comment #2: 

This is not an issue for the FLTK backend.  For gnuplot, the problem resides with gnuplot and not with Octave.  See the discussion on bug #341456.

Rik <rik5>
Group administrator
Tue 10 Jan 2012 01:43:41 AM UTC, comment #1: 

This is essentially a duplicate of the bug report below.

https://savannah.gnu.org/bugs/?func=detailitem&item_id=34146

I assume you are using the gnuplot backend ?

If so the behavior you've encountered varies depending upon the version of gnuplot.

What version of gnuplot are you using ?

Ben Abbott <bpabbott>
Group Member
Mon 09 Jan 2012 09:42:32 PM UTC, original submission:  

The svg output from octave lacks the width and the height parameters in the <svg> tag.

To reproduce:

x = -10:0.1:10;
y = sin(x);
figure(1,"visible","off");
plot(x,y);
print "-S400,300" -dsvg chart.svg;

The resulting svg file starts with (initial xml and DOCTYPES tags erased):

<svg viewBox="0 0 192 144"
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"

>


The expected output is:

<svg viewBox="0 0 192 144" width="400px" height="300px"
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"

>


Reference:
    - http://www.w3.org/TR/SVG/coords.html#ViewportSpace

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by None (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
    2013-03-14 rik5 CategoryPlotting Plotting with gnuplot
        Open/ClosedOpen Closed
    2012-01-10 jordigh Dependencies- Depends on bugs #34146
    2012-01-10 bpabbott StatusNone Duplicate

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code