|
5 | 5 | try
|
6 | 6 |
|
7 | 7 | %-update plot based on TreatAs PlotOpts-%
|
8 |
| - |
9 |
| - if ~strcmpi(obj.PlotOptions.TreatAs, '_') |
10 |
| - if strcmpi(obj.PlotOptions.TreatAs, 'pie3') |
11 |
| - updatePie3(obj, dataIndex); |
12 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'pcolor') |
13 |
| - updatePColor(obj, dataIndex); |
14 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'polarplot') |
15 |
| - updatePolarplot(obj, dataIndex); |
16 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'contour3') |
17 |
| - 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); |
22 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'polarhistogram') |
23 |
| - updateHistogramPolar(obj, dataIndex); |
24 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'coneplot') |
25 |
| - updateConeplot(obj, dataIndex); |
26 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'bar3') |
27 |
| - updateBar3(obj, dataIndex); |
28 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'bar3h') |
29 |
| - updateBar3h(obj, dataIndex); |
30 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'surf') |
31 |
| - updateSurf(obj, dataIndex); |
32 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'comet') || strcmpi(obj.PlotOptions.TreatAs, 'comet3') |
33 |
| - updateComet(obj, dataIndex); |
34 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'fmesh') |
35 |
| - updateFmesh(obj, dataIndex); |
36 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'mesh') |
37 |
| - updateMesh(obj, dataIndex); |
38 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'surfc') |
39 |
| - updateSurfc(obj, dataIndex); |
40 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'meshc') |
41 |
| - updateSurfc(obj, dataIndex); |
42 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'surfl') |
43 |
| - updateSurfl(obj, dataIndex); |
| 8 | + |
| 9 | + if ismember('pie3', lower(obj.PlotOptions.TreatAs)) |
| 10 | + updatePie3(obj, dataIndex); |
| 11 | + elseif ismember('pcolor', lower(obj.PlotOptions.TreatAs)) |
| 12 | + updatePColor(obj, dataIndex); |
| 13 | + elseif ismember('polarplot', lower(obj.PlotOptions.TreatAs)) |
| 14 | + updatePolarplot(obj, dataIndex); |
| 15 | + elseif ismember('contour3', lower(obj.PlotOptions.TreatAs)) |
| 16 | + updateContour3(obj, dataIndex); |
| 17 | + elseif ismember('compass', lower(obj.PlotOptions.TreatAs)) |
| 18 | + updateLineseries(obj, dataIndex); |
| 19 | + elseif ismember('ezpolar', lower(obj.PlotOptions.TreatAs)) |
| 20 | + updateLineseries(obj, dataIndex); |
| 21 | + elseif ismember('polarhistogram', lower(obj.PlotOptions.TreatAs)) |
| 22 | + updateHistogramPolar(obj, dataIndex); |
| 23 | + elseif ismember('coneplot', lower(obj.PlotOptions.TreatAs)) |
| 24 | + updateConeplot(obj, dataIndex); |
| 25 | + elseif ismember('bar3', lower(obj.PlotOptions.TreatAs)) |
| 26 | + updateBar3(obj, dataIndex); |
| 27 | + elseif ismember('bar3h', lower(obj.PlotOptions.TreatAs)) |
| 28 | + updateBar3h(obj, dataIndex); |
| 29 | + elseif ismember('surf', lower(obj.PlotOptions.TreatAs)) |
| 30 | + updateSurf(obj, dataIndex); |
| 31 | + elseif ismember('fmesh', lower(obj.PlotOptions.TreatAs)) |
| 32 | + updateFmesh(obj, dataIndex); |
| 33 | + elseif ismember('mesh', lower(obj.PlotOptions.TreatAs)) |
| 34 | + updateMesh(obj, dataIndex); |
| 35 | + elseif ismember('surfc', lower(obj.PlotOptions.TreatAs)) |
| 36 | + updateSurfc(obj, dataIndex); |
| 37 | + elseif ismember('meshc', lower(obj.PlotOptions.TreatAs)) |
| 38 | + updateSurfc(obj, dataIndex); |
| 39 | + elseif ismember('surfl', lower(obj.PlotOptions.TreatAs)) |
| 40 | + updateSurfl(obj, dataIndex); |
44 | 41 |
|
45 |
| - % this one will be revomed |
46 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'streamtube') |
47 |
| - updateStreamtube(obj, dataIndex); |
48 |
| - end |
| 42 | + % this one will be revomed |
| 43 | + % elseif strcmpi(obj.PlotOptions.TreatAs, 'streamtube') |
| 44 | + % updateStreamtube(obj, dataIndex); |
| 45 | + % end |
49 | 46 |
|
50 | 47 | %-update plot based on plot call class-%
|
51 | 48 |
|
|
75 | 72 | case 'line'
|
76 | 73 | if obj.PlotlyDefaults.isGeoaxis
|
77 | 74 | updateGeoPlot(obj, dataIndex);
|
| 75 | + elseif ismember('ternplot', lower(obj.PlotOptions.TreatAs)) |
| 76 | + updateTernaryPlot(obj, dataIndex); |
78 | 77 | else
|
79 | 78 | updateLineseries(obj, dataIndex);
|
80 | 79 | end
|
|
88 | 87 | % check for histogram
|
89 | 88 | if isHistogram(obj,dataIndex)
|
90 | 89 | updateHistogram(obj,dataIndex);
|
| 90 | + elseif ismember('ternplotpro', lower(obj.PlotOptions.TreatAs)) |
| 91 | + updateTernaryPlotPro(obj, dataIndex); |
| 92 | + elseif ismember('ternpcolor', lower(obj.PlotOptions.TreatAs)) |
| 93 | + updateTernaryPlotPro(obj, dataIndex); |
91 | 94 | else
|
92 | 95 | updatePatch(obj, dataIndex);
|
93 | 96 | end
|
|
114 | 117 | case 'baseline'
|
115 | 118 | updateBaseline(obj, dataIndex);
|
116 | 119 | case {'contourgroup','contour'}
|
117 |
| - if ~obj.PlotOptions.ContourProjection |
118 |
| - updateContourgroup(obj,dataIndex); |
119 |
| - else |
| 120 | + if obj.PlotOptions.ContourProjection |
120 | 121 | updateContourProjection(obj,dataIndex);
|
| 122 | + elseif ismember('terncontour', lower(obj.PlotOptions.TreatAs)) |
| 123 | + updateTernaryContour(obj, dataIndex); |
| 124 | + else |
| 125 | + updateContourgroup(obj,dataIndex); |
121 | 126 | end
|
122 | 127 | case 'functioncontour'
|
123 | 128 | updateFunctionContour(obj,dataIndex);
|
|
0 commit comments