Skip to content

Commit d9b3080

Browse files
committed
Merge pull request #85 from plotly/fix-json-precision
Fix json precision
2 parents fa581ad + 1371310 commit d9b3080

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## MATLAB PLOTLY API WRAPPER 2.2.4
1+
## MATLAB PLOTLY API WRAPPER 2.2.5
22

33
### NUTSHELL:
44

plotly/plotly_aux/m2json.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
if length(find(sz>1))>1 % 2D or higher array
99
valstr = '';
1010
for i = 1:sz(1)
11-
valsubstr = [sprintf('%g, ', val(i,:))];
11+
valsubstr = [sprintf('%.15g, ', val(i,:))];
1212
valsubstr = valsubstr(1:(end-2));
13-
valstr = [valstr ', [' valsubstr ']'];
13+
valstr = [valstr ', [' valsubstr ']'];
1414
end
15-
valstr = valstr(3:end); % trail leading commas
15+
valstr = valstr(3:end); % trail leading commas
1616
else
17-
valstr = [sprintf('%g, ', val)];
17+
valstr = [sprintf('%.15g, ', val)];
1818
valstr = valstr(1:(end-2));
1919
end
2020
if length(val)>1

plotly/plotly_aux/plotly_version.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function version = plotly_version()
2-
version = '2.2.4';
2+
version = '2.2.5';
33
end

0 commit comments

Comments
 (0)