File tree 4 files changed +340
-288
lines changed
4 files changed +340
-288
lines changed Original file line number Diff line number Diff line change @@ -573,10 +573,10 @@ function validate(obj)
573
573
574
574
% get number of nbars for pie3
575
575
if strcmpi(obj .PlotOptions .TreatAs , ' pie3' )
576
- obj.PlotOptions.nbars = 0 ;
576
+ obj.PlotOptions.nbars{ a } = 0 ;
577
577
for i = 1 : length(plots )
578
578
if strcmpi(getGraphClass(plots(i )), ' surface' )
579
- obj.PlotOptions.nbars = obj .PlotOptions .nbars + 1 ;
579
+ obj.PlotOptions.nbars{ a } = obj.PlotOptions.nbars{ a } + 1 ;
580
580
end
581
581
end
582
582
end
Original file line number Diff line number Diff line change 91
91
% -------------------------------------------------------------------------%
92
92
93
93
% -text-%
94
- if ~strcmpi( obj .PlotOptions . TreatAs , ' pie3 ' )
94
+ if obj .State .Text( anIndex ).Title
95
95
obj.layout.annotations{anIndex }.text = parseString(text_data .String ,text_data .Interpreter );
96
- if obj . State .Text( anIndex ).Title && isempty(text_data .String )
96
+ if isempty(text_data .String )
97
97
obj.layout.annotations{anIndex }.text = ' <b></b>' ; % empty string annotation
98
98
end
99
99
else
100
- obj.layout.annotations{anIndex }.text = ' <b></b>' ;
100
+ if ~strcmpi(obj .PlotOptions .TreatAs , ' pie3' )
101
+ obj.layout.annotations{anIndex }.text = parseString(text_data .String ,text_data .Interpreter );
102
+ else
103
+ obj.layout.annotations{anIndex }.text = ' <b></b>' ;
104
+ end
101
105
end
102
106
107
+ % -optional code flow-%
108
+ % if ~strcmpi(obj.PlotOptions.TreatAs, 'pie3')
109
+ % obj.layout.annotations{anIndex}.text = parseString(text_data.String,text_data.Interpreter);
110
+ % if obj.State.Text(anIndex).Title && isempty(text_data.String)
111
+ % obj.layout.annotations{anIndex}.text = '<b></b>'; %empty string annotation
112
+ % end
113
+ % else
114
+ % obj.layout.annotations{anIndex}.text = '<b></b>';
115
+ % end
116
+
103
117
% -------------------------------------------------------------------------%
104
118
105
119
if obj .State .Text(anIndex ).Title
Original file line number Diff line number Diff line change 96
96
97
97
% -xaxis domain-%
98
98
xaxis.domain = min([xo xo + w ],1 );
99
+ scene.domain.x = min([xo xo + w ],1 );
99
100
100
101
% -------------------------------------------------------------------------%
101
102
102
103
% -yaxis domain-%
103
104
yaxis.domain = min([yo yo + h ],1 );
105
+ scene.domain.y = min([yo yo + h ],1 );
104
106
105
107
% -------------------------------------------------------------------------%
106
108
135
137
% update the layout field (do not overwrite source)
136
138
if xsource == axIndex
137
139
obj.layout = setfield(obj .layout ,[' xaxis' num2str(xsource )],xaxis );
140
+ obj.layout = setfield(obj .layout ,[' scene' num2str(xsource )],scene );
138
141
else
139
142
140
143
end
You can’t perform that action at this time.
0 commit comments