forked from plotly/plotly_matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotlymsg.m
More file actions
18 lines (17 loc) · 1.04 KB
/
plotlymsg.m
File metadata and controls
18 lines (17 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function errormsg = plotlymsg(key)
switch key
%--plotlyfig constructor--%
case 'plotlyfigConstructor:notSignedIn'
errormsg = '\nOops! You must be signed in to initialize a plotlyfig object.\n';
case 'plotlyfigConstructor:invalidInputs'
errormsg = ['\nOops! It appears that you did not initialize the plotlyfig object using the\n', ...
'required: >> plotlyfig(handle [optional],''property'',''value'',...) \n',...
'input structure. Please try again or contact chuck@plot.ly for any additional help!\n\n'];
%--saveplotlyfig invocation--%;
case 'plotlySaveImage:invalidInputs'
errormsg = ['\nOops! It appears that you did not invoke the saveplotlyfig function using the\n', ...
'required: >> saveplotlyfig(plotly_figure, ...) input structure, where plotly_figure\n',...
'is of type cell (for data traces) or of type struct (with data and layout fields). \n',...
'Please try again or contact chuck@plot.ly for any additional help!\n\n'];
end
end