Watch this Author's files
Small bug report. My plots have an axis label coded by: ylabel('Oscillator Strength (eV^{-1})') but the svg file is missing the final ')'.
This is a great piece of code, well done! Thanks, Ben
Bug report: If I set ytick manually, but then also set ylim so that not all yticks are displayed, then I get an "Index exceeds matrix dimensions" error.
Fix: line 1019 of plot2svg_2d:
indexnz=find(labelpos ~= 0)
should be changed to:
labellimit=get(ax,'YLim') indexnz=find(labelpos ~= 0 & labelpos >= labellimit(1) & labelpos <= labellimit(2))
and obviously, line 1003 should be changed similarly for the x-axis case.
Contact us at files@mathworks.com