Skip to content

Commit 64b99f2

Browse files
committed
Merge pull request #80 from alexlib/master
replace %f with %g
2 parents daa9d66 + b081544 commit 64b99f2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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.2
1+
## MATLAB PLOTLY API WRAPPER 2.2.3
22

33
### NUTSHELL:
44

plotly/plotly_aux/m2json.m

Lines changed: 3 additions & 3 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('%f, ', val(i,:))];
11+
valsubstr = [sprintf('%g, ', val(i,:))];
1212
valsubstr = valsubstr(1:(end-2));
1313
valstr = [valstr ', [' valsubstr ']'];
1414
end
1515
valstr = valstr(3:end); % trail leading commas
1616
else
17-
valstr = [sprintf('%f, ', val)];
17+
valstr = [sprintf('%g, ', val)];
1818
valstr = valstr(1:(end-2));
1919
end
2020
if length(val)>1
@@ -35,4 +35,4 @@
3535
end
3636
else
3737
valstr = ''; % wtf is it?
38-
end
38+
end

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.2';
2+
version = '2.2.3';
33
end

0 commit comments

Comments
 (0)