Skip to content

Commit 78efaca

Browse files
fix issue #204
1 parent 0f79dfe commit 78efaca

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

plotly/plotlyfig.m

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,11 @@ function validate(obj)
450450

451451
% handle title (for feed)
452452
if obj.PlotOptions.CleanFeedTitle
453-
cleanFeedTitle(obj);
453+
try
454+
cleanFeedTitle(obj);
455+
catch
456+
% TODO to the future
457+
end
454458
end
455459

456460
%get args
@@ -642,7 +646,7 @@ function validate(obj)
642646
updateAxis(obj,n);
643647
catch
644648
% TODO to the future
645-
disp('catch at line 643 in plotlyfog.m file')
649+
% disp('catch at line 647 in plotlyfig.m file')
646650
end
647651
end
648652

@@ -665,10 +669,14 @@ function validate(obj)
665669
% update annotations
666670
for n = 1:obj.State.Figure.NumTexts
667671
try
668-
updateAnnotation(obj,n);
672+
if ~strcmpi(obj.State.Plot(dataIndex).Class, 'heatmap')
673+
updateAnnotation(obj,n);
674+
else
675+
obj.PlotOptions.CleanFeedTitle = false;
676+
end
669677
catch
670678
% TODO to the future
671-
disp('catch at line 671 in plotlyfog.m file')
679+
% disp('catch at line 679 in plotlyfig.m file')
672680
end
673681
end
674682

@@ -973,6 +981,7 @@ function delete(obj)
973981
|| strcmpi(fieldname,'mesh3d') || strcmpi(fieldname,'bar') ...
974982
|| strcmpi(fieldname,'scatterpolar') || strcmpi(fieldname,'barpolar') ...
975983
|| strcmpi(fieldname,'scene') || strcmpi(fieldname,'layout') ...
984+
|| strcmpi(fieldname,'heatmap') ...
976985
)
977986
fprintf(['\nWhoops! ' exception.message(1:end-1) ' in ' fieldname '\n\n']);
978987
end

plotly/plotlyfig_aux/core/updateData.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
switch lower(obj.State.Plot(dataIndex).Class)
2323

2424
%--CORE PLOT OBJECTS--%
25+
case 'heatmap'
26+
updateHeatmap(obj, dataIndex);
2527
case 'image'
2628
updateImage(obj, dataIndex);
2729
case 'line'
@@ -152,7 +154,7 @@
152154
end
153155
catch
154156
% TODO to the future
155-
disp('catch at line 155 in updateData.m file')
157+
% disp('catch at line 157 in updateData.m file')
156158
end
157159

158160
%-------------------------------------------------------------------------%

plotly/plotlyfig_aux/helpers/parseString.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@
247247
end
248248
end
249249
end
250+
else
251+
formatStr = 'untitled';
250252
end
251253

252254

0 commit comments

Comments
 (0)