From 332a4d62236bc3fb9c2058afcaa5698f99a41952 Mon Sep 17 00:00:00 2001 From: Gilberto Galvis Date: Thu, 29 Jul 2021 09:56:56 -0400 Subject: [PATCH] fix issue #197 --- plotly/plotlyfig.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plotly/plotlyfig.m b/plotly/plotlyfig.m index 96014062..fa0f0697 100644 --- a/plotly/plotlyfig.m +++ b/plotly/plotlyfig.m @@ -237,6 +237,8 @@ % plotly reference plotlyref = load('plotly_reference.mat'); + % rmfield(plotlyref.pr, 'xbins'); + % plotlyref.pr.xbins.size % update the PlotlyRef property obj.PlotlyReference = plotlyref.pr; @@ -265,7 +267,7 @@ % strip the style keys from data for d = 1:length(obj.data) - if strcmpi(obj.data{d}.type, 'scatter') + if strcmpi(obj.data{d}.type, 'scatter') || strcmpi(obj.data{d}.type, 'histogram') return end obj.data{d} = obj.stripkeys(obj.data{d}, obj.data{d}.type, 'style'); @@ -825,6 +827,7 @@ function delete(obj) pr = obj.PlotlyReference; % initialize output + % fields stripped = fields; % get fieldnames