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

Skip to content

Commit d6d7cd7

Browse files
author
Harsh Purwar
committed
Updated outdated fields from scatter3d
1 parent f36c6ba commit d6d7cd7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plotly/plotlyfig_aux/handlegraphics/updatePatch.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878

7979
else
8080
obj.data{patchIndex}.type = 'scatter3d';
81+
% No xaxis/yaxis fields in obj.data for scatter3d in updated JSON
82+
obj.data{patchIndex} = rmfield(obj.data{patchIndex},'xaxis');
83+
obj.data{patchIndex} = rmfield(obj.data{patchIndex},'yaxis');
8184
end
8285
else
8386
obj.data{patchIndex}.type = 'scatter';
@@ -149,7 +152,9 @@
149152
%---------------------------------------------------------------------%
150153

151154
%-patch fill-%
152-
obj.data{patchIndex}.fill = 'tozeroy';
155+
if ~strcmp(obj.data{patchIndex}.type,'scatter3d')
156+
obj.data{patchIndex}.fill = 'tozeroy';
157+
end
153158

154159
%-PATCH MODE-%
155160
if ~strcmpi('none', patch_data.Marker) && ~strcmpi('none', patch_data.LineStyle)

0 commit comments

Comments
 (0)