From dd5ac4700be8019bdafe93bc5582640c51389b81 Mon Sep 17 00:00:00 2001 From: Muhammad Nouman Tariq <66955797+nouman-tariq@users.noreply.github.com> Date: Wed, 4 Aug 2021 15:29:13 +0500 Subject: [PATCH 1/2] update- updated the attribute check method, and specified the case more, so that it may not cause interference with any other type of graph --- plotly/plotlyfig.m | 4 +-- plotly/untitled.html | 67 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 plotly/untitled.html diff --git a/plotly/plotlyfig.m b/plotly/plotlyfig.m index 1183a3a2..1b082e02 100644 --- a/plotly/plotlyfig.m +++ b/plotly/plotlyfig.m @@ -486,9 +486,9 @@ function validate(obj) temp_ax = ax; deleted_idx = 0; for i = 1:length(ax) for j = i:length(ax) - if ((mean(eq(ax(i).Position, ax(j).Position)) == 1) && (i~=j)) + if ((mean(eq(ax(i).Position, ax(j).Position)) == 1) && (i~=j) && strcmp(ax(i).Children.Type, 'histogram')) temp_plots = findobj(temp_ax(i),'-not','Type','Text','-not','Type','axes','-depth',1); - if ~ischar(temp_plots.FaceAlpha) + if isprop(temp_plots, 'FaceAlpha') update_opac(i) = true; else update_opac(i) = false; diff --git a/plotly/untitled.html b/plotly/untitled.html new file mode 100644 index 00000000..9e7b036d --- /dev/null +++ b/plotly/untitled.html @@ -0,0 +1,67 @@ + + +