time | Calls | line |
---|
| | 214 | function [axle, ruler, family, prop, mode] = parseFunctionName(func)
|
| | 215 | % Parse the function name the user called and determine which ruler and
|
| | 216 | % property needs to be modified/queried.
|
| | 217 |
|
< 0.001 | 2 | 218 | axle = upper(func(1));
|
< 0.001 | 2 | 219 | switch axle
|
< 0.001 | 2 | 220 | case {'X','Y','Z'}
|
< 0.001 | 2 | 221 | ruler = ['Active' axle 'Ruler'];
|
| | 222 | case 'T'
|
| | 223 | axle = 'Theta';
|
| | 224 | ruler = 'ThetaAxis';
|
| | 225 | func = func(5:end);
|
| | 226 | otherwise
|
| | 227 | ruler = [axle 'Axis'];
|
< 0.001 | 2 | 228 | end
|
| | 229 |
|
< 0.001 | 2 | 230 | family = func(2:end);
|
< 0.001 | 2 | 231 | switch family
|
< 0.001 | 2 | 232 | case 'lim'
|
< 0.001 | 2 | 233 | ruler = '';
|
< 0.001 | 2 | 234 | prop = [axle 'Lim'];
|
< 0.001 | 2 | 235 | mode = [axle 'LimMode'];
|
| | 236 | case 'ticks'
|
| | 237 | prop = 'TickValues';
|
| | 238 | mode = 'TickValuesMode';
|
| | 239 | case 'ticklabels'
|
| | 240 | prop = 'TickLabels';
|
| | 241 | mode = 'TickLabelsMode';
|
| | 242 | case 'tickangle'
|
| | 243 | prop = 'TickLabelRotation';
|
| | 244 | mode = 'TickLabelRotationMode';
|
| | 245 | case 'tickformat'
|
| | 246 | prop = 'TickLabelFormat';
|
| | 247 | mode = '';
|
< 0.001 | 2 | 248 | end
|
| | 249 |
|
< 0.001 | 2 | 250 | end
|
Other subfunctions in this file are not included in this listing.