|
6 | 6 |
|
7 | 7 | %-update plot based on TreatAs PlotOpts-%
|
8 | 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, 'fmesh') |
33 |
| - updateFmesh(obj, dataIndex); |
34 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'mesh') |
35 |
| - updateMesh(obj, dataIndex); |
36 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'surfc') |
37 |
| - updateSurfc(obj, dataIndex); |
38 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'meshc') |
39 |
| - updateSurfc(obj, dataIndex); |
40 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'surfl') |
41 |
| - updateSurfl(obj, dataIndex); |
42 |
| - |
43 |
| - % this one will be revomed |
44 |
| - elseif strcmpi(obj.PlotOptions.TreatAs, 'streamtube') |
45 |
| - updateStreamtube(obj, dataIndex); |
46 |
| - end |
| 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); |
| 41 | + |
| 42 | + % this one will be revomed |
| 43 | + % elseif strcmpi(obj.PlotOptions.TreatAs, 'streamtube') |
| 44 | + % updateStreamtube(obj, dataIndex); |
| 45 | + % end |
47 | 46 |
|
48 | 47 | %-update plot based on plot call class-%
|
49 | 48 |
|
|
73 | 72 | case 'line'
|
74 | 73 | if obj.PlotlyDefaults.isGeoaxis
|
75 | 74 | updateGeoPlot(obj, dataIndex);
|
| 75 | + elseif ismember('ternplot', lower(obj.PlotOptions.TreatAs)) |
| 76 | + updateTernaryPlot(obj, dataIndex); |
76 | 77 | else
|
77 | 78 | updateLineseries(obj, dataIndex);
|
78 | 79 | end
|
|
86 | 87 | % check for histogram
|
87 | 88 | if isHistogram(obj,dataIndex)
|
88 | 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); |
89 | 94 | else
|
90 | 95 | updatePatch(obj, dataIndex);
|
91 | 96 | end
|
|
110 | 115 | case 'baseline'
|
111 | 116 | updateBaseline(obj, dataIndex);
|
112 | 117 | case {'contourgroup','contour'}
|
113 |
| - if ~obj.PlotOptions.ContourProjection |
114 |
| - updateContourgroup(obj,dataIndex); |
115 |
| - else |
| 118 | + if obj.PlotOptions.ContourProjection |
116 | 119 | updateContourProjection(obj,dataIndex);
|
| 120 | + elseif ismember('terncontour', lower(obj.PlotOptions.TreatAs)) |
| 121 | + updateTernaryContour(obj, dataIndex); |
| 122 | + else |
| 123 | + updateContourgroup(obj,dataIndex); |
117 | 124 | end
|
118 | 125 | case 'functioncontour'
|
119 | 126 | updateFunctionContour(obj,dataIndex);
|
|
0 commit comments