time | Calls | line |
|---|
| | 227 | function [axle, ruler, family, prop, mode] = parseFunctionName(func)
|
| | 228 | % Parse the function name the user called and determine which ruler and
|
| | 229 | % property needs to be modified/queried.
|
| | 230 |
|
< 0.001 | 10 | 231 | axle = upper(func(1));
|
< 0.001 | 10 | 232 | switch axle
|
< 0.001 | 10 | 233 | case {'X','Y','Z'}
|
< 0.001 | 10 | 234 | ruler = ['Active' axle 'Ruler'];
|
| | 235 | case 'T'
|
| | 236 | axle = 'Theta';
|
| | 237 | ruler = 'ThetaAxis';
|
| | 238 | func = func(5:end);
|
| | 239 | otherwise
|
| | 240 | ruler = [axle 'Axis'];
|
< 0.001 | 10 | 241 | end
|
| | 242 |
|
< 0.001 | 10 | 243 | family = func(2:end);
|
< 0.001 | 10 | 244 | switch family
|
< 0.001 | 10 | 245 | case 'lim'
|
< 0.001 | 10 | 246 | ruler = '';
|
< 0.001 | 10 | 247 | prop = [axle 'Lim'];
|
< 0.001 | 10 | 248 | mode = [axle 'LimMode'];
|
| | 249 | case 'ticks'
|
| | 250 | prop = 'TickValues';
|
| | 251 | mode = 'TickValuesMode';
|
| | 252 | case 'ticklabels'
|
| | 253 | prop = 'TickLabels';
|
| | 254 | mode = 'TickLabelsMode';
|
| | 255 | case 'tickangle'
|
| | 256 | prop = 'TickLabelRotation';
|
| | 257 | mode = 'TickLabelRotationMode';
|
| | 258 | case 'tickformat'
|
| | 259 | prop = 'TickLabelFormat';
|
| | 260 | mode = '';
|
< 0.001 | 10 | 261 | end
|
| | 262 |
|
< 0.001 | 10 | 263 | end
|
Other subfunctions in this file are not included in this listing.