Skip to content

Commit 9d75c4c

Browse files
Adding scatterhistogram to work with fig2plotly
1 parent b89336d commit 9d75c4c

File tree

4 files changed

+610
-1
lines changed

4 files changed

+610
-1
lines changed

plotly/plotlyfig.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,8 @@ function validate(obj)
681681
end
682682

683683
% update plots
684+
obj.PlotOptions.nplots = obj.State.Figure.NumPlots;
685+
684686
for n = 1:obj.State.Figure.NumPlots
685687
updateData(obj,n);
686688

@@ -1015,6 +1017,7 @@ function delete(obj)
10151017
|| strcmpi(fieldname,'scene') || strcmpi(fieldname,'layout') ...
10161018
|| strcmpi(fieldname,'heatmap') || strcmpi(fieldname,'xaxis') ...
10171019
|| strcmpi(fieldname,'yaxis') || strcmpi(fieldname,'cone')...
1020+
|| strcmpi(fieldname,'legend') ...
10181021
)
10191022
fprintf(['\nWhoops! ' exception.message(1:end-1) ' in ' fieldname '\n\n']);
10201023
end

plotly/plotlyfig_aux/core/updateData.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
switch lower(obj.State.Plot(dataIndex).Class)
3737

3838
%--CORE PLOT OBJECTS--%
39-
case 'wordcloud'
39+
case 'scatterhistogram'
40+
updateScatterhistogram(obj, dataIndex);
41+
case 'wordcloud'
4042
updateWordcloud(obj, dataIndex);
4143
case 'heatmap'
4244
updateHeatmap(obj, dataIndex);

0 commit comments

Comments
 (0)