File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 78
78
html_filename = [clean_filename ' .html' ];
79
79
80
80
% save the html file in the working directory
81
- plotly_offline_file = fullfile(pwd , html_filename );
81
+ plotly_offline_file = fullfile(plotlyfig . PlotOptions . SaveFolder , html_filename );
82
82
file_id = fopen(plotly_offline_file , ' w' );
83
83
fprintf(file_id , offline_script );
84
84
fclose(file_id );
Original file line number Diff line number Diff line change 65
65
obj.PlotOptions.ShowLinkText = true ;
66
66
obj.PlotOptions.LinkText = obj .get_link_text ;
67
67
obj.PlotOptions.IncludePlotlyjs = true ;
68
-
68
+ obj.PlotOptions.SaveFolder = pwd ;
69
+
69
70
% -PlotlyDefaults-%
70
71
obj.PlotlyDefaults.MinTitleMargin = 80 ;
71
72
obj.PlotlyDefaults.TitleHeight = 0.01 ;
152
153
% overwrite if filename provided
153
154
obj.PlotOptions.FileOpt = ' overwrite' ;
154
155
end
156
+ if (strcmpi(varargin{a },' savefolder' ))
157
+ obj.PlotOptions.SaveFolder = varargin{a + 1 };
158
+ end
155
159
if (strcmpi(varargin{a },' fileopt' ))
156
160
obj.PlotOptions.FileOpt = varargin{a + 1 };
157
161
end
You can’t perform that action at this time.
0 commit comments