File tree 1 file changed +11
-4
lines changed 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 17
17
structargs = varargin{end };
18
18
f = lower(fieldnames(structargs ));
19
19
if ~any(strcmp(' filename' ,f ))
20
- structargs.filename = NaN ;
20
+ if offline
21
+ structargs.filename = ' untitled' ;
22
+ else
23
+ structargs.filename = NaN ;
24
+ end
21
25
end
22
26
if ~any(strcmp(' fileopt' ,f ))
23
27
structargs.fileopt = NaN ;
29
33
struct_provided = true ;
30
34
31
35
args = varargin(1 : (end - 1 ));
36
+
32
37
else
38
+
33
39
if offline
34
- structargs = struct(' filename' , ' untitled' , ' fileopt' , NaN );
40
+ structargs = struct(' filename' , ' untitled' , ' fileopt' , NaN )
35
41
else
36
42
structargs = struct(' filename' , NaN ,' fileopt' ,NaN );
37
43
end
38
44
args = varargin(1 : end );
39
45
struct_provided = false ;
40
46
end
41
47
42
- if ( offline )
43
- if struct_provided
48
+ if offline
49
+ if ( struct_provided )
44
50
nofig_obj = plotlynofig(varargin{1 : end - 1 }, structargs );
45
51
else
52
+ structargs
46
53
nofig_obj = plotlynofig(varargin{1 : end }, structargs );
47
54
end
48
55
nofig_obj.layout.width = 840 ;
You can’t perform that action at this time.
0 commit comments