Skip to content

Commit dd5ac47

Browse files
committed
update-
updated the attribute check method, and specified the case more, so that it may not cause interference with any other type of graph
1 parent 3726e60 commit dd5ac47

File tree

2 files changed

+69
-2
lines changed

2 files changed

+69
-2
lines changed

plotly/plotlyfig.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,9 @@ function validate(obj)
486486
temp_ax = ax; deleted_idx = 0;
487487
for i = 1:length(ax)
488488
for j = i:length(ax)
489-
if ((mean(eq(ax(i).Position, ax(j).Position)) == 1) && (i~=j))
489+
if ((mean(eq(ax(i).Position, ax(j).Position)) == 1) && (i~=j) && strcmp(ax(i).Children.Type, 'histogram'))
490490
temp_plots = findobj(temp_ax(i),'-not','Type','Text','-not','Type','axes','-depth',1);
491-
if ~ischar(temp_plots.FaceAlpha)
491+
if isprop(temp_plots, 'FaceAlpha')
492492
update_opac(i) = true;
493493
else
494494
update_opac(i) = false;

plotly/untitled.html

Lines changed: 67 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)