File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1717 structargs = varargin{end };
1818 f = lower(fieldnames(structargs ));
1919 if ~any(strcmp(' filename' ,f ))
20- structargs.filename = NaN ;
20+ if offline
21+ structargs.filename = ' untitled' ;
22+ else
23+ structargs.filename = NaN ;
24+ end
2125 end
2226 if ~any(strcmp(' fileopt' ,f ))
2327 structargs.fileopt = NaN ;
2933 struct_provided = true ;
3034
3135 args = varargin(1 : (end - 1 ));
36+
3237else
38+
3339 if offline
34- structargs = struct(' filename' , ' untitled' , ' fileopt' , NaN );
40+ structargs = struct(' filename' , ' untitled' , ' fileopt' , NaN )
3541 else
3642 structargs = struct(' filename' , NaN ,' fileopt' ,NaN );
3743 end
3844 args = varargin(1 : end );
3945 struct_provided = false ;
4046end
4147
42- if ( offline )
43- if struct_provided
48+ if offline
49+ if ( struct_provided )
4450 nofig_obj = plotlynofig(varargin{1 : end - 1 }, structargs );
4551 else
52+ structargs
4653 nofig_obj = plotlynofig(varargin{1 : end }, structargs );
4754 end
4855 nofig_obj.layout.width = 840 ;
You can’t perform that action at this time.
0 commit comments