nschloe/matlab2tikz — Issue #72: Possibility to add extraEnvOptions (similar to extraAxisOptions)?
Author: drgz
Created: 2012-02-28 09:19:57+00:00
State: open

Since I still don't get the pull request thing 100%:

Possible to add something like

% extra environment options
m2t.cmdOpts = m2t.cmdOpts.addParamValue( m2t.cmdOpts, 'extraEnvOptions', {}, @isCellOrChar );

and add

if ~isempty( m2t.cmdOpts.Results.extraEnvOptions )
m2t.content = append( m2t.content, m2t.cmdOpts.Results.extraEnvOptions );
end

below the line

m2t.content.name = 'tikzpicture';

This way, it's easier to add extra options to the tikzpicture environment that should be placed outside the axis environment without having to edit each file manually.