Rank: 8106 based on 6 downloads (last 30 days) and 1 file submitted
photo

Andrew

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Andrew
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Sep 2011 Get Git Info Provides info about the current git repository, including branch name, url and hash. Author: Andrew git, versioning 6 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Andrew
Updated File Comments Rating
10 Sep 2012 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

BUGFIX & PATCH

There is a mysterious visible bounding box that shows up in the SVG file.

As an example, run:

figure;
axes
alpha=.2
color=[1 0 0]
hrect=annotation('rectangle',[0.3 0.5 .3 .2])
set(hrect,'FaceColor',color);
set(hrect,'FaceAlpha',alpha);
set(hrect,'LineStyle','none');
plot2svg('test.svg')

Note that the semi-transparent rectangle has no outline on screen, but it does in SVG.

To fix:
At the end of line 1787, immediately following the line:
scolorname=searchcolor(id,get(axchild(i),'EdgeColor'));

INSERT:
linestyle=get(axchild(i),'LineStyle');
if strcmp(linestyle,'none');
scolorname='none';
end

Comments and Ratings on Andrew 's Files
Updated File Comment by Comments Rating
17 Jan 2014 Get Git Info Provides info about the current git repository, including branch name, url and hash. Author: Andrew Marius

Great idea to include the current commit in figures and so on. How about putting it up on GitHub?

Best regards,
Marius

Contact us