Skip to content

Commit d6ad933

Browse files
Merge pull request #370 from plotly/adding_scatterhistogram_to_fig2plotly
Adding scatterhistogram to work with fig2plotly
2 parents b89336d + 0b7d668 commit d6ad933

File tree

4 files changed

+610
-1
lines changed

4 files changed

+610
-1
lines changed

Diff for: plotly/plotlyfig.m

+4
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,8 @@ 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') || strcmpi(fieldname,'histogram')...
1021+
|| strcmpi(fieldname,'scatter')...
10181022
)
10191023
fprintf(['\nWhoops! ' exception.message(1:end-1) ' in ' fieldname '\n\n']);
10201024
end

Diff for: plotly/plotlyfig_aux/core/updateData.m

+3-1
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)