@@ -139,7 +139,10 @@ function plotlysetup(username, api_key, varargin)
139139
140140try % save user credentials
141141 fprintf(' Saving username/api_key credentials ... ' );
142- saveplotlycredentials(username ,api_key );
142+
143+ % update: as of v.2.1.7, This also signs in the user
144+ saveplotlycredentials(username , api_key );
145+
143146 % worked!
144147 fprintf(' Done\n ' );
145148catch exception % writing credentials file permission problem catch...
@@ -168,13 +171,19 @@ function plotlysetup(username, api_key, varargin)
168171
169172 if strcmp(varargin{n },' stream_ids' )
170173 fprintf(' Saving stream_ids credentials ... ' );
171- saveplotlycredentials(username ,api_key ,varargin{n + 1 });
174+
175+ % update: as of v.2.1.7, This also signs in the user
176+ saveplotlycredentials(username , api_key , varargin{n + 1 });
177+
172178 % worked!
173179 fprintf(' Done\n ' );
174180 end
175181 if strcmp(varargin{n },' plotly_domain' )
176182 fprintf(' Saving plotly_domain configuration ... ' );
183+
184+ % update: as of v.2.1.7, This also signs in the user
177185 saveplotlyconfig(varargin{n + 1 });
186+
178187 % worked!
179188 fprintf(' Done\n ' );
180189 end
@@ -185,7 +194,10 @@ function plotlysetup(username, api_key, varargin)
185194 catch
186195 config.plotly_domain = ' ' ;
187196 end
197+
198+ % update: as of v.2.1.7, This also signs in the user
188199 saveplotlyconfig(config .plotly_domain ,varargin{n + 1 });
200+
189201 % worked!
190202 fprintf(' Done\n ' );
191203 end
@@ -195,9 +207,6 @@ function plotlysetup(username, api_key, varargin)
195207 fprintf([' \n\n ' exception .identifier exception .message ' \n\n ' ]);
196208end
197209
198- % sign in the user
199- signin(username ,api_key );
200-
201210% greet the people!
202211fprintf(' \n Welcome to Plotly! If you are new to Plotly please enter: >> plotlyhelp to get started!\n\n ' )
203212
@@ -210,7 +219,10 @@ function plotlysetup(username, api_key, varargin)
210219 ' the Plotly folder to your MATLAB path manually by running: \n\n ' ,...
211220 ' >> plotly_path = fullfile(pwd, '' plotly'' )\n ' ,...
212221 ' >> addpath(genpath(plotly_path))\n\n ' ,...
213- ' Questions? Chuck@plotly' ];
214-
222+ ' You can save your credentials by running:\n\n ' , ...
223+ ' >>saveplotlycredentials('' your_username'' , '' your_api_key'' )\n\n ' ,...
224+ ' You can save your domain configuration by running:\n\n ' ,...
225+ ' >>saveplotlyconfig('' your_base_domain'' )\n\n ' ,...
226+ ' Questions? Chuck@plotly\n\n ' ];
215227end
216228
0 commit comments