Skip to content

Commit ff94215

Browse files
authored
Merge pull request #288 from plotly/issue_207
update to the issue 207-
2 parents e3341d5 + b34d26b commit ff94215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/plotlyfig.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,9 @@ function validate(obj)
499499
temp_ax = ax; deleted_idx = 0;
500500
for i = 1:length(ax)
501501
for j = i:length(ax)
502-
if ((mean(eq(ax(i).Position, ax(j).Position)) == 1) && (i~=j))
502+
if ((mean(eq(ax(i).Position, ax(j).Position)) == 1) && (i~=j) && strcmp(ax(i).Children.Type, 'histogram'))
503503
temp_plots = findobj(temp_ax(i),'-not','Type','Text','-not','Type','axes','-depth',1);
504-
if ~ischar(temp_plots.FaceAlpha)
504+
if isprop(temp_plots, 'FaceAlpha')
505505
update_opac(i) = true;
506506
else
507507
update_opac(i) = false;

0 commit comments

Comments
 (0)