File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 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
@@ -425,6 +429,14 @@ function validate(obj)
425
429
obj .strip ;
426
430
end
427
431
432
+ % strip margins
433
+ if obj .PlotOptions .StripMargins
434
+ obj.layout.margin.l = 0 ;
435
+ obj.layout.margin.r = 0 ;
436
+ obj.layout.margin.b = 0 ;
437
+ obj.layout.margin.t = 0 ;
438
+ end
439
+
428
440
% validate keys
429
441
validate(obj );
430
442
You can’t perform that action at this time.
0 commit comments