diff options
author | Karl Berry <karl@freefriends.org> | 2009-02-05 01:04:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-02-05 01:04:42 +0000 |
commit | ad23c1c436c3e031cc4b81849d0fa2b892851467 (patch) | |
tree | d04be182dbf5cdb14c1728b8f2edddc84f77df03 /Master/texmf-dist/scripts/pgfplots | |
parent | 4041df693bc0b66ecdf77e891e5ff1a60f1497fc (diff) |
pgfplots update (4feb09)
git-svn-id: svn://tug.org/texlive/trunk@12087 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/pgfplots')
-rw-r--r-- | Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m b/Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m index 8d4ce820083..d8922238e18 100644 --- a/Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m +++ b/Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m @@ -28,7 +28,7 @@ function matlab2pgfplots(varargin ) % a boolean indicating whether line styles, markers and colors shall be exported (default 1). % - 'axes',0|1 % a boolean indicating whether axis ticks, tick labels and limits shall be exported (default 0). -% - 'maxpoints',100 +% - 'maxpoints',100000 % an integer denoting the maximum number of points exported to tex. If the actual number is larger, % the data will be interpolated to 'maxpoints'. The interpolation assumes % parametric plots if x and y are not monotonically increasing. @@ -41,6 +41,7 @@ function matlab2pgfplots(varargin ) % % Copyright Christian Feuersaenger 2008 % +% This script requires Matlab version 7.4 (or above). parser = inputParser; parser.addRequired( 'outfile', @(x) ischar(x) ); @@ -57,6 +58,10 @@ fighandle = parser.Results.fig; lineobjs = findobj(fighandle, 'Type', 'line' ); axesobj = findobj( fighandle, 'Type', 'axes' ); +% As far as I know, 'scatter' and 'scatter3' produce groups of this class: +scatterobjs = findobj(fighandle, 'Type', 'hggroup' ); +lineobjs = [ lineobjs scatterobjs ]; + legendobj = findobj( fighandle, 'tag', 'legend' ); if length(legendobj) > 0 allchildsoflegend = [ findobj( legendobj ) ]; @@ -217,7 +222,7 @@ for i = 1:length(lineobjs) case ':' linestyle = 'densely dotted'; case '-:' - linestyle = 'dash pattern=on 2pt off 3pt on 1pt off 3pt]'; + linestyle = 'dash pattern={on 2pt off 3pt on 1pt off 3pt}'; case '--' linestyle = 'densely dashed'; end |