1- function saveplotlyconfig(plotly_domain ,plotly_streaming_domain )
1+ function saveplotlyconfig(plotly_domain ,plotly_streaming_domain , sharing )
22% Save plotly config info.
33% Plotly config info are saved as JSON strings
44% in ~/.plotly/.config
@@ -8,7 +8,7 @@ function saveplotlyconfig(plotly_domain,plotly_streaming_domain)
88 error(' plotly:saveconfig' , ...
99 [' Incorrect number of inputs. Please save your configuration ' , ...
1010 ' as follows: >> saveplotlyconfig(plotly_domain,' , ...
11- ' [optional]plotly_streaming_domain)' ]);
11+ ' [optional]plotly_streaming_domain), ' , ' [optional]sharing ' ]);
1212end
1313
1414% if the config file exists, then load it up
@@ -56,6 +56,11 @@ function saveplotlyconfig(plotly_domain,plotly_streaming_domain)
5656 config.plotly_domain = plotly_domain ;
5757 signin(username , api_key , plotly_domain );
5858 config.plotly_streaming_domain= plotly_streaming_domain ;
59+ case 3
60+ config.plotly_domain = plotly_domain ;
61+ signin(username , api_key , plotly_domain );
62+ config.plotly_streaming_domain = plotly_streaming_domain ;
63+ config.sharing = sharing ;
5964 otherwise % if neither endpoints are specified, no worries!
6065end
6166
0 commit comments