From 3ee468f0744f0f27343b97038216f991b67608ca Mon Sep 17 00:00:00 2001 From: BRONSOLO Date: Wed, 27 May 2015 23:46:23 -0400 Subject: [PATCH 1/2] use xbins and ybins to improve histogram render --- .../handlegraphics/updateHistogram.m | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/plotly/plotlyfig_aux/handlegraphics/updateHistogram.m b/plotly/plotlyfig_aux/handlegraphics/updateHistogram.m index 40bf6336..3d8b6393 100644 --- a/plotly/plotlyfig_aux/handlegraphics/updateHistogram.m +++ b/plotly/plotlyfig_aux/handlegraphics/updateHistogram.m @@ -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] @@ -79,7 +79,7 @@ %-------------------------------------------------------------------------% %-HIST XAXIS-% -obj.data{histIndex}.histnorm = 'count'; +obj.data{histIndex}.histfunc= 'count'; %-------------------------------------------------------------------------% @@ -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; %-------------------------------------------------------------------------% @@ -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; %-------------------------------------------------------------------------% From 253a96c53256a5093d9ff3a671e3edd205fc49ae Mon Sep 17 00:00:00 2001 From: BRONSOLO Date: Thu, 28 May 2015 09:56:16 -0400 Subject: [PATCH 2/2] version bump 2.1.7 --> 2.1.8 --- README.md | 2 +- plotly/plotly_aux/plotly_version.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae3c3a77..0744fc35 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## MATLAB PLOTLY API WRAPPER 2.1.7 +## MATLAB PLOTLY API WRAPPER 2.1.8 ### NUTSHELL: diff --git a/plotly/plotly_aux/plotly_version.m b/plotly/plotly_aux/plotly_version.m index 59ad4be3..19cddab6 100644 --- a/plotly/plotly_aux/plotly_version.m +++ b/plotly/plotly_aux/plotly_version.m @@ -1,3 +1,3 @@ function version = plotly_version() - version = '2.1.7'; + version = '2.1.8'; end