plot2svg

Save MATLAB plots as svg files

View the Project on GitHub lawrennd/plot2svg

Scalable Vector Graphics (SVG) Export of Figures

Converts 2D & 3D Matlab plots to the scalable vector format (SVG). This format is specified by W3C (http://www.w3.org) and can be viewed and printed with internet browsers.

Added preliminary support of filter, clipping, and tickmark extensions that go beyond the Matlab functionality. SVG filters are a great tool to create stylish plots! Try it out! Before you start using this new features have a look at the tutorial. More information and examples can be found on my blog http://www.zhinst.com/blogs/schwizer/.

Tested browsers and editors for basic SVG support (no filters, no animation): Opera 9.64, 10.50, 10.63 -> yes Firefox 3.5, 3.6, 12.0, 15.0 -> yes Inkscape 0.46, 0.47, 0.48 -> yes Chrome 8.0, 18.0, 21.0 -> yes Internet Explorer 9.0 beta -> yes Internet Explorer 8.0 -> no Internet Explorer + RENESIS -> yes

Tested browsers and editors for SVG filters: Opera 9.64, 10.50, 10.63 -> yes Firefox 3.5, 3.6, 12.0, 15.0 -> yes Inkscape 0.46, 0.47, 0.48 -> yes (some limitations) Chrome 8.0, 18.0, 21.0 -> yes Internet Explorer 8.0, 9.0 beta -> no Internet Explorer + RENESIS -> no

Editors for the SVG file format can be found at http://www.inkscape.org.

Usage:

plot2svg % opens a file dialog to plot the active figure or plot2svg('myfile.svg', figure handle, pixelfiletype)

pixelfiletype = 'png' (default), 'jpg'

See http://www.zhinst.com/blogs/schwizer/ to get more informations

Supported Features

How to use SVG files in HTML code

Changes in Version 22-May-2005

Changes in Version 12-Dec-2005

Changes in Version 8-Jan-2006

Changes in Version 20-Jun-2009

Changes in Version 28-Jun-2009

Changes in Version 11-Jul-2009

Changes in Version 13-Jul-2009

Changes in Version 18-Jul-2009

Changes in Version 21-Jul-2009

Changes in Version 06-Mar-2010

Changes in Version 12-04-2010

Changes in Version 05-05-2010

Changes in Version 30-10-2010

Changes in Version 10-11-2010

Changes in Version 25-08-2011

Changes in Version 22-10-2011

Changes in Version 20-05-2012

Changes in Version 25-08-2012

Changes in Version 15-09-2012

Limitations:

Example of a SVG file is included to the zip file.

Reports of bugs highly welcome.