File tree Expand file tree Collapse file tree 3 files changed +27
-4
lines changed Expand file tree Collapse file tree 3 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 1
- ## MATLAB PLOTLY API WRAPPER 2.2.5
1
+ ## MATLAB PLOTLY API WRAPPER 2.2.6
2
2
3
3
### NUTSHELL:
4
4
Original file line number Diff line number Diff line change 1
1
function version = plotly_version()
2
- version = ' 2.2.5 ' ;
2
+ version = ' 2.2.6 ' ;
3
3
end
Original file line number Diff line number Diff line change 53
53
obj.PlotOptions.CleanFeedTitle = true ;
54
54
obj.PlotOptions.FileName = ' ' ;
55
55
obj.PlotOptions.FileOpt = ' new' ;
56
- obj.PlotOptions.WorldReadable = true ;
56
+ obj.PlotOptions.WorldReadable = obj . get_sharing ;
57
57
obj.PlotOptions.ShowURL = true ;
58
58
obj.PlotOptions.OpenURL = true ;
59
59
obj.PlotOptions.Strip = true ;
@@ -887,6 +887,29 @@ function delete(obj)
887
887
link_domain = strrep(plotly_domain , ' https://' , ' ' );
888
888
link_domain = strrep(link_domain , ' http://' , ' ' );
889
889
link_text = [' Export to ' link_domain ];
890
- end
890
+ end
891
+
892
+ function sharing_value = get_sharing(obj )
893
+ config = loadplotlyconfig();
894
+ if ~isfield(config , ' sharing' )
895
+ if isfield(config , ' world_readable' )
896
+ sharing_value = config .world_readable ;
897
+ return ;
898
+ else
899
+ sharing_value = true ;
900
+ return ;
901
+ end
902
+ end
903
+
904
+ config = config .sharing ;
905
+ if strcmp(config , ' private' )
906
+ sharing_value = false ;
907
+ elseif strcmp(config , ' secret' )
908
+ warning(' Secret share keys are not currently supported in the MATLAB API.' );
909
+ sharing_value = false ;
910
+ else
911
+ sharing_value = true ;
912
+ end
913
+ end
891
914
end
892
915
end
You can’t perform that action at this time.
0 commit comments