Matlab and GNU Octave support SVG files. Unfortunately, Matlab's SVG files do not scale nicely and are restricted to the figure size at the time of saving. You can use svg_fix_viewbox to fix this issue.
fig2svg is a Matlab/GNU Octave toolbox that converts Matlab/GNU Octave figures to Scalable Vector Graphics (SVG). The most important feature when comparing fig2svg to plot2svg is that fig2svg has enhanced compatibility, especially for Matlab graphics > 2014a. Note that plot2svg function is deprecated in the fig2svg toolbox and will be removed in the next major release (keeping it now to ease transitions from plot2svg to fig2svg). Thus, plot2svg use in this toolbox is discouraged. Please use fig2svg instead.
- bar plot
- scatter plot
- legend
- colorbar
- ticklabelrotation
- annotations
- 3D plots (distinct azimuth values)
- horizontal bar plot
- stairs and stem plots
- patch enhancements (issue #10)
- 3D plots (distinct elevation values issue #15)
- your feature request ;-)
fig2svg was originally a fork of plot2svg