File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 7777 html_filename = [clean_filename ' .html' ];
7878
7979 % save the html file in the working directory
80- plotly_offline_file = fullfile(pwd , html_filename );
80+ plotly_offline_file = fullfile(plotlyfig . PlotOptions . SaveFolder , html_filename );
8181 file_id = fopen(plotly_offline_file , ' w' );
8282 fprintf(file_id , offline_script );
8383 fclose(file_id );
Original file line number Diff line number Diff line change 6565 obj.PlotOptions.ShowLinkText = true ;
6666 obj.PlotOptions.LinkText = obj .get_link_text ;
6767 obj.PlotOptions.IncludePlotlyjs = true ;
68-
68+ obj.PlotOptions.SaveFolder = pwd ;
69+
6970 % -PlotlyDefaults-%
7071 obj.PlotlyDefaults.MinTitleMargin = 80 ;
7172 obj.PlotlyDefaults.TitleHeight = 0.01 ;
152153 % overwrite if filename provided
153154 obj.PlotOptions.FileOpt = ' overwrite' ;
154155 end
156+ if (strcmpi(varargin{a },' savefolder' ))
157+ obj.PlotOptions.SaveFolder = varargin{a + 1 };
158+ end
155159 if (strcmpi(varargin{a },' fileopt' ))
156160 obj.PlotOptions.FileOpt = varargin{a + 1 };
157161 end
You can’t perform that action at this time.
0 commit comments