summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m')
-rw-r--r--Master/texmf-dist/scripts/pgfplots/matlab2pgfplots.m9
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