Home

Awesome

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.

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'

Supported Features

How to use SVG files in HTML code <object type="image/svg+xml" data="./mySVGfile.svg" width="140" height="100"></object>

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.