Skip to content

Commit 332a4d6

Browse files
fix issue #197
1 parent 0f006a7 commit 332a4d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plotly/plotlyfig.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@
237237

238238
% plotly reference
239239
plotlyref = load('plotly_reference.mat');
240+
% rmfield(plotlyref.pr, 'xbins');
241+
% plotlyref.pr.xbins.size
240242

241243
% update the PlotlyRef property
242244
obj.PlotlyReference = plotlyref.pr;
@@ -265,7 +267,7 @@
265267

266268
% strip the style keys from data
267269
for d = 1:length(obj.data)
268-
if strcmpi(obj.data{d}.type, 'scatter')
270+
if strcmpi(obj.data{d}.type, 'scatter') || strcmpi(obj.data{d}.type, 'histogram')
269271
return
270272
end
271273
obj.data{d} = obj.stripkeys(obj.data{d}, obj.data{d}.type, 'style');
@@ -825,6 +827,7 @@ function delete(obj)
825827
pr = obj.PlotlyReference;
826828

827829
% initialize output
830+
% fields
828831
stripped = fields;
829832

830833
% get fieldnames

0 commit comments

Comments
 (0)