File tree Expand file tree Collapse file tree 4 files changed +340
-288
lines changed Expand file tree Collapse file tree 4 files changed +340
-288
lines changed Original file line number Diff line number Diff line change @@ -573,10 +573,10 @@ function validate(obj)
573573
574574 % get number of nbars for pie3
575575 if strcmpi(obj .PlotOptions .TreatAs , ' pie3' )
576- obj.PlotOptions.nbars = 0 ;
576+ obj.PlotOptions.nbars{ a } = 0 ;
577577 for i = 1 : length(plots )
578578 if strcmpi(getGraphClass(plots(i )), ' surface' )
579- obj.PlotOptions.nbars = obj .PlotOptions .nbars + 1 ;
579+ obj.PlotOptions.nbars{ a } = obj.PlotOptions.nbars{ a } + 1 ;
580580 end
581581 end
582582 end
Original file line number Diff line number Diff line change 9191% -------------------------------------------------------------------------%
9292
9393% -text-%
94- if ~strcmpi( obj .PlotOptions . TreatAs , ' pie3 ' )
94+ if obj .State .Text( anIndex ).Title
9595 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 )
9797 obj.layout.annotations{anIndex }.text = ' <b></b>' ; % empty string annotation
9898 end
9999else
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
101105end
102106
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+
103117% -------------------------------------------------------------------------%
104118
105119if obj .State .Text(anIndex ).Title
Original file line number Diff line number Diff line change 9696
9797% -xaxis domain-%
9898xaxis.domain = min([xo xo + w ],1 );
99+ scene.domain.x = min([xo xo + w ],1 );
99100
100101% -------------------------------------------------------------------------%
101102
102103% -yaxis domain-%
103104yaxis.domain = min([yo yo + h ],1 );
105+ scene.domain.y = min([yo yo + h ],1 );
104106
105107% -------------------------------------------------------------------------%
106108
135137% update the layout field (do not overwrite source)
136138if xsource == axIndex
137139 obj.layout = setfield(obj .layout ,[' xaxis' num2str(xsource )],xaxis );
140+ obj.layout = setfield(obj .layout ,[' scene' num2str(xsource )],scene );
138141else
139142
140143end
You can’t perform that action at this time.
0 commit comments