[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35270] Octave plot svg output lacks the width
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #35270] Octave plot svg output lacks the width and height parameters |
Date: |
Mon, 09 Jan 2012 21:42:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0 |
URL:
<http://savannah.gnu.org/bugs/?35270>
Summary: Octave plot svg output lacks the width and height
parameters
Project: GNU Octave
Submitted by: None
Submitted on: Mon 09 Jan 2012 09:42:32 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Dov Grobgeld
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.3
Operating System: Any
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35270>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35270] Octave plot svg output lacks the width and height parameters,
anonymous <=