Skip to content

fix issue #197 #218

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
Jul 29, 2021
Merged
Changes from 1 commit
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
Next Next commit
fix issue #197
  • Loading branch information
galvisgilberto committed Jul 29, 2021
commit 332a4d62236bc3fb9c2058afcaa5698f99a41952
5 changes: 4 additions & 1 deletion plotly/plotlyfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -825,6 +827,7 @@ function delete(obj)
pr = obj.PlotlyReference;

% initialize output
% fields
stripped = fields;

% get fieldnames
Expand Down