Skip to content

Commit fc7726d

Browse files
Remove equal sign parameter assignment to improve backwards compatibility
1 parent ba4092d commit fc7726d

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

plotly/plotly_aux/cell2json.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
function str = cell2json(s)
2-
strList = string(cellfun(@m2json, s, un=0));
2+
strList = string(cellfun(@m2json, s, 'un', 0));
33
str = sprintf("[%s]", strjoin(strList, ", "));
44
end

plotly/plotly_aux/makecall.m

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
url = [domain '/clientresp'];
1818
payload = struct( ...
19-
platform=platform, ...
20-
version=plotly_version, ...
21-
args=args, ...
22-
un=un, ...
23-
key=key, ...
24-
origin=origin, ...
25-
kwargs=kwargs ...
26-
);
19+
'platform',platform, ...
20+
'version',plotly_version, ...
21+
'args',args, ...
22+
'un',un, ...
23+
'key',key, ...
24+
'origin',origin, ...
25+
'kwargs',kwargs ...
26+
);
2727

2828
st = webwrite(url, payload);
2929
end

plotly/plotly_aux/plotlygenimage.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function plotlygenimage(figure_or_data, filename, varargin)
2323
figure = struct('data', data);
2424
end
2525

26-
payload = struct(figure=figure, format=format);
26+
payload = struct('figure',figure,'format',format);
2727

2828
[un, key, domain] = signin;
2929

plotly/plotly_aux/struct2json.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function str = struct2json(s)
22
f = fieldnames(s);
3-
strList = cellfun(@(x) sprintf('"%s" : %s', x, m2json(s.(x))), f, un=0);
3+
strList = cellfun(@(x) sprintf('"%s" : %s', x, m2json(s.(x))), f, 'un', 0);
44
str = sprintf("{%s}", strjoin(strList, ", "));
55
end

0 commit comments

Comments
 (0)