Skip to content

Histogram bounds #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## MATLAB PLOTLY API WRAPPER 2.1.7
## MATLAB PLOTLY API WRAPPER 2.1.8

### NUTSHELL:

Expand Down
2 changes: 1 addition & 1 deletion plotly/plotly_aux/plotly_version.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function version = plotly_version()
version = '2.1.7';
version = '2.1.8';
end
24 changes: 15 additions & 9 deletions plotly/plotlyfig_aux/handlegraphics/updateHistogram.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
% name:...[DONE]
% autobinx:...[DONE]
% nbinsx:...[DONE]
% xbins:...[NA]
% xbins:...[DONE]
% autobiny:...[DONE]
% nbinsy:...[DONE]
% ybins:...[NA]
% ybins:...[DONE]
% text:...[NOT SUPPORTED IN MATLAB]
% error_y:...[HANDLED BY ERRORBARSERIES]
% error_x:...[HANDLED BY ERRORBARSERIES]
Expand Down Expand Up @@ -79,7 +79,7 @@
%-------------------------------------------------------------------------%

%-HIST XAXIS-%
obj.data{histIndex}.histnorm = 'count';
obj.data{histIndex}.histfunc= 'count';

%-------------------------------------------------------------------------%

Expand All @@ -103,12 +103,15 @@
%-------------------------------------------------------------------------%

%-hist autobinx-%
obj.data{histIndex}.autobinx = true;
obj.data{histIndex}.autobinx = false;

%-------------------------------------------------------------------------%

%-hist nbinsx-%
obj.data{histIndex}.nbinsx = length(xdata) + 1; %(+1 for max #)
%-hist xbins-%
xbins.start = hist_data.XData(2,1);
xbins.end = hist_data.XData(3,end);
xbins.size = diff(hist_data.XData(2:3,1));
obj.data{histIndex}.xbins = xbins;

%-------------------------------------------------------------------------%

Expand All @@ -130,12 +133,15 @@
%-------------------------------------------------------------------------%

%-hist autobiny-%
obj.data{histIndex}.autobiny = true;
obj.data{histIndex}.autobiny = false;

%-------------------------------------------------------------------------%

%-hist nbinsy-%
obj.data{histIndex}.nbinsy = length(ydata);
%-hist ybins-%
ybins.start = hist_data.YData(2,1);
ybins.end = hist_data.YData(3,end);
ybins.size = diff(hist_data.YData(2:3,1));
obj.data{histIndex}.ybins = ybins;

%-------------------------------------------------------------------------%

Expand Down