File tree Expand file tree Collapse file tree 5 files changed +17
-19
lines changed Expand file tree Collapse file tree 5 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -671,9 +671,8 @@ function validate(obj)
671671 updateData(obj ,n );
672672
673673 try
674- if (strcmp(obj.data{n }.type, ' bar' ) && update_opac(length(ax )-n ))
675- obj.data{1 , n }.opacity = 0.9 ;
676- obj.data{1 , n }.marker.color = ' rgb(0,113.985,188.955)' ;
674+ if update_opac(length(ax )-n )
675+ % obj.data{1, n}.opacity = 0.9;
677676 end
678677 catch
679678 % TODO to the future
Original file line number Diff line number Diff line change 1515 updatePolarplot(obj , dataIndex );
1616 elseif strcmpi(obj .PlotOptions .TreatAs , ' contour3' )
1717 updateContour3(obj , dataIndex );
18+ elseif strcmpi(obj .PlotOptions .TreatAs , ' compass' )
19+ updateLineseries(obj , dataIndex );
20+ elseif strcmpi(obj .PlotOptions .TreatAs , ' ezpolar' )
21+ updateLineseries(obj , dataIndex );
1822 end
1923
2024 % -update plot based on plot call class-%
Original file line number Diff line number Diff line change @@ -66,23 +66,14 @@ function updateLineseries(obj,plotIndex)
6666% -------------------------------------------------------------------------%
6767
6868% -if polar plot or not-%
69- ispolar = false ;
70- x = plot_data .XData ;
71- y = plot_data .YData ;
69+ treatas = obj .PlotOptions .TreatAs ;
70+ ispolar = strcmpi(treatas , ' compass' ) || strcmpi(treatas , ' ezpolar' );
7271
73- if length(x )==5 && length(y )==5 && x(2 )==x(4 ) && y(2 )==y(4 )
74- ispolar = true ;
75- end
72+ % -------------------------------------------------------------------------%
7673
77- % -if ezpolar or not-%
78- len = length(obj .State .Axis .Handle .Children );
79- if len > 1
80- for l = 1 : len
81- if strcmpi(obj .State .Axis .Handle .Children(l ).Type, ' Text' )
82- ispolar = true ;
83- end
84- end
85- end
74+ % -getting data-%
75+ x = plot_data .XData ;
76+ y = plot_data .YData ;
8677
8778% -------------------------------------------------------------------------%
8879
Original file line number Diff line number Diff line change 2828 switch line_data .Marker
2929 case ' .'
3030 marksymbol = ' circle' ;
31+ marker.size = 0.4 * line_data .MarkerSize ;
3132 case ' o'
3233 marksymbol = ' circle' ;
34+ marker.size = 0.4 * line_data .MarkerSize ;
3335 case ' x'
3436 marksymbol = ' x-thin-open' ;
3537 case ' +'
Original file line number Diff line number Diff line change 5050 end
5151
5252 marker.color = [' rgb(' num2str(col(1 )) ' ,' num2str(col(2 )) ' ,' num2str(col(3 )) ' )' ];
53+
54+ case ' auto'
55+ marker.color = ' rgb(0,113.985,188.955)' ;
5356
5457 end
5558end
5659
5760% -------------------------------------------------------------------------%
5861
5962% -PATCH EDGE COLOR-%
60-
6163if isnumeric(patch_data .EdgeColor )
6264
6365 col = 255 * patch_data .EdgeColor ;
You can’t perform that action at this time.
0 commit comments