Thanks to visit codestin.com
Credit goes to github.com

Skip to content

adding spider_plot package funcionality to matlab_plotly #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions plotly/plotlyfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,13 @@ function validate(obj)
obj.State.Axis(a).Handle = ax(axrev);

% add title
obj.State.Text(a).Handle = get(ax(axrev),'Title');
obj.State.Text(a).AssociatedAxis = handle(ax(axrev));
obj.State.Text(a).Title = true;
try
obj.State.Text(a).Handle = get(ax(axrev),'Title');
obj.State.Text(a).AssociatedAxis = handle(ax(axrev));
obj.State.Text(a).Title = true;
catch
% TODO
end

% find plots of figure
plots = findobj(ax(axrev),'-not','Type','Text','-not','Type','axes','-depth',1);
Expand Down Expand Up @@ -768,6 +772,7 @@ function validate(obj)
% reset dataget(obj.State.Figure.Handle,'Children')
obj.data = {};
obj.PlotOptions.nPlots = obj.State.Figure.NumPlots;
obj.PlotlyDefaults.anIndex = obj.State.Figure.NumTexts + 1;

% reset layout
obj.layout = struct();
Expand Down
8 changes: 6 additions & 2 deletions plotly/plotlyfig_aux/core/updateData.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@

switch lower(obj.State.Plot(dataIndex).Class)

%--GEOAXES SPECIAL CASE--%
%--SPIDER PLOT -> SPECIAL CASE--%
case 'spider_plot_class'
updateSpiderPlot(obj, dataIndex);

%--GEOAXES -> SPECIAL CASE--%
case 'geoaxes'
UpdateGeoAxes(obj, dataIndex);

%-EMULATE AXES-%
%-EMULATE AXES -> SPECIAL CASE--%
case 'nothing'
updateOnlyAxes(obj, dataIndex);

Expand Down
Loading