|
22 | 22 | hCost = figure; |
23 | 23 | subplot(3,1,1) |
24 | 24 | for n = 1:numel(ErrorModels) |
25 | | - hLine = plot(Result.Error(:,n), Result.Cost(:,n) - min(Result.Cost(:,n)), 'LineWidth', Config.Line.Width, 'Color', Config.Line.Color(n,:)); |
| 25 | + hLine = plot(Result.Error(:,n), Result.Cost(:,n) - min(Result.Cost(:,n)), 'LineWidth', Config.Line.Width, 'Color', Config.Color.Default(n,:)); |
26 | 26 | set(hLine, 'DisplayName', ErrorModels{n}); |
27 | 27 | hold on |
28 | 28 | end |
|
36 | 36 | % gradient |
37 | 37 | subplot(3,1,2) |
38 | 38 | for n = 1:numel(ErrorModels) |
39 | | - h = plot(Result.Error(:,n), Result.Gradient(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Line.Color(n,:)); |
| 39 | + h = plot(Result.Error(:,n), Result.Gradient(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Color.Default(n,:)); |
40 | 40 | set(h, 'DisplayName', ErrorModels{n}); |
41 | 41 | hold on |
42 | 42 | end |
|
50 | 50 | % Hessian |
51 | 51 | subplot(3,1,3) |
52 | 52 | for n = 1:numel(ErrorModels) |
53 | | - h = plot(Result.Error(:,n), Result.Hessian(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Line.Color(n,:)); |
| 53 | + h = plot(Result.Error(:,n), Result.Hessian(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Color.Default(n,:)); |
54 | 54 | set(h, 'DisplayName', ErrorModels{n}); |
55 | 55 | hold on |
56 | 56 | end |
|
72 | 72 | %% plot probability |
73 | 73 | hProb = figure; |
74 | 74 | for n = 1:numel(ErrorModels) |
75 | | - hLine = plot(Result.Error(:,n), Result.Prob(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Line.Color(n,:)); |
| 75 | + hLine = plot(Result.Error(:,n), Result.Prob(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Color.Default(n,:)); |
76 | 76 | set(hLine,'DisplayName',ErrorModels{n}); |
77 | 77 | hold on |
78 | 78 | end |
|
88 | 88 | hOpt = figure; |
89 | 89 | hold on |
90 | 90 | for n = 1:numel(ErrorModels) |
91 | | - hLine = plot(Result.Error(:,n), Result.Cost(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Line.Color(n,:)); |
| 91 | + hLine = plot(Result.Error(:,n), Result.Cost(:,n), 'LineWidth', Config.Line.Width, 'Color', Config.Color.Default(n,:)); |
92 | 92 | set(hLine,'DisplayName',ErrorModels{n}); |
93 | | - plot(-Result.PostOpt(:,n), ones(size(Result.PostOpt(:,n)))*n + min(Result.Cost,[],'all'), 'x', 'MarkerSize', Config.Line.Marker.Size, 'LineWidth', Config.Line.Width, 'Color', Config.Line.Color(n,:), 'HandleVisibility','off') |
| 93 | + plot(-Result.PostOpt(:,n), ones(size(Result.PostOpt(:,n)))*n + min(Result.Cost,[],'all'), 'x', 'MarkerSize', Config.Line.Marker.Size, 'LineWidth', Config.Line.Width, 'Color', Config.Color.Default(n,:), 'HandleVisibility','off') |
94 | 94 | end |
95 | 95 | hold off |
96 | 96 | legend('show'); |
|
109 | 109 | hHist.Normalization = 'pdf'; |
110 | 110 | hHist.BinEdges = hHist.BinEdges - hHist.BinWidth/2.0; |
111 | 111 | hHist.LineStyle = 'none'; |
112 | | - hHist.FaceColor = Config.Line.Color(n,:); |
| 112 | + hHist.FaceColor = Config.Color.Default(n,:); |
113 | 113 | end |
114 | 114 | hold off |
115 | 115 | % Format |
|
130 | 130 | hHist.Normalization = 'pdf'; |
131 | 131 | hHist.BinEdges = hHist.BinEdges - hHist.BinWidth/2.0; |
132 | 132 | hHist.LineStyle = 'none'; |
133 | | - hHist.FaceColor = Config.Line.Color(n,:); |
| 133 | + hHist.FaceColor = Config.Color.Default(n,:); |
134 | 134 | end |
135 | 135 | hold off |
136 | 136 | % Format |
|
0 commit comments