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

 
 

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

Submitted by:  None
Submitted on:  Mon 09 Jan 2012 09:42:32 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: Dov GrobgeldOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.3
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Mar 2013 02:11:28 AM UTCrik5CategoryPlotting=>Plotting with gnuplot
      Open/ClosedOpen=>Closed
    Tue 10 Jan 2012 01:58:48 AM UTCjordighDependencies-=>Depends on bugs #34146
    Tue 10 Jan 2012 01:43:41 AM UTCbpabbottStatusNone=>Duplicate

    Back to the top


    Powered by Savane 3.1-cleanup1