|
26 | 26 |
|
27 | 27 | %-errorbar visible-%
|
28 | 28 | obj.data{errorbarIndex}.error_y.visible = true;
|
| 29 | +obj.data{errorbarIndex}.error_x.visible = true; |
29 | 30 |
|
30 | 31 | %-------------------------------------------------------------------------%
|
31 | 32 |
|
32 | 33 | %-errorbar type-%
|
33 | 34 | obj.data{errorbarIndex}.error_y.type = 'data';
|
| 35 | +obj.data{errorbarIndex}.error_x.type = 'data'; |
34 | 36 |
|
35 | 37 | %-------------------------------------------------------------------------%
|
36 | 38 |
|
|
41 | 43 |
|
42 | 44 | %-errorbar value-%
|
43 | 45 | obj.data{errorbarIndex}.error_y.array = errorbar_data.YPositiveDelta;
|
| 46 | +obj.data{errorbarIndex}.error_x.array = errorbar_data.XPositiveDelta; |
44 | 47 |
|
45 | 48 | %-------------------------------------------------------------------------%
|
46 | 49 |
|
47 | 50 | %-errorbar valueminus-%
|
48 | 51 | obj.data{errorbarIndex}.error_y.arrayminus = errorbar_data.YNegativeDelta;
|
| 52 | +obj.data{errorbarIndex}.error_x.arrayminus = errorbar_data.XNegativeDelta; |
49 | 53 |
|
50 | 54 | %-------------------------------------------------------------------------%
|
51 | 55 |
|
52 | 56 | %-errorbar thickness-%
|
53 | 57 | obj.data{errorbarIndex}.error_y.thickness = errorbar_data.LineWidth;
|
| 58 | +obj.data{errorbarIndex}.error_x.thickness = errorbar_data.LineWidth; |
54 | 59 |
|
55 | 60 | %-------------------------------------------------------------------------%
|
56 | 61 |
|
57 | 62 | %-errorbar width-%
|
58 | 63 | obj.data{errorbarIndex}.error_y.width = obj.PlotlyDefaults.ErrorbarWidth;
|
| 64 | +obj.data{errorbarIndex}.error_x.width = obj.PlotlyDefaults.ErrorbarWidth; |
59 | 65 |
|
60 | 66 | %-------------------------------------------------------------------------%
|
61 | 67 |
|
62 | 68 | %-errorbar color-%
|
63 | 69 | col = 255*errorbar_data.Color;
|
64 | 70 | obj.data{errorbarIndex}.error_y.color = ['rgb(' num2str(col(1)) ',' num2str(col(2)) ',' num2str(col(3)) ')'];
|
| 71 | +obj.data{errorbarIndex}.error_x.color = ['rgb(' num2str(col(1)) ',' num2str(col(2)) ',' num2str(col(3)) ')']; |
65 | 72 |
|
66 | 73 | %-------------------------------------------------------------------------%
|
67 | 74 |
|
|
0 commit comments