File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 58
58
obj.PlotOptions.OpenURL = true ;
59
59
obj.PlotOptions.Strip = false ;
60
60
obj.PlotOptions.Visible = ' on' ;
61
- obj.PlotOptions.TriangulatePatch = false ;
61
+ obj.PlotOptions.TriangulatePatch = false ;
62
+ obj.PlotOptions.StripMargins = false ;
62
63
63
64
% offline options
64
65
obj.PlotOptions.Offline = true ;
192
193
if (strcmpi(varargin{a },' data' ))
193
194
obj.data = varargin{a + 1 };
194
195
end
196
+ if (strcmpi(varargin{a },' StripMargins' ))
197
+ obj.PlotOptions.StripMargins = varargin{a + 1 };
198
+ end
195
199
end
196
200
end
197
201
@@ -423,6 +427,14 @@ function validate(obj)
423
427
obj .strip ;
424
428
end
425
429
430
+ % strip margins
431
+ if obj .PlotOptions .StripMargins
432
+ obj.layout.margin.l = 0 ;
433
+ obj.layout.margin.r = 0 ;
434
+ obj.layout.margin.b = 0 ;
435
+ obj.layout.margin.t = 0 ;
436
+ end
437
+
426
438
% validate keys
427
439
validate(obj );
428
440
You can’t perform that action at this time.
0 commit comments