@@ -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([' \n Whoops! ' exception .message(1 : end - 1 ) ' in ' fieldname ' \n\n ' ]);
978987 end
0 commit comments