Skip to content

Commit aff918a

Browse files
Merge branch 'issue241_fixing' of github.com:plotly/plotly-graphing-library-for-matlab into issue241_fixing
2 parents 8463ca8 + f887c4f commit aff918a

File tree

5 files changed

+456
-598
lines changed

5 files changed

+456
-598
lines changed

plotly/plotlyfig.m

Lines changed: 2 additions & 2 deletions
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)