Showing
5 changed files
with
22 additions
and
3 deletions
CRF/bin/FiguresGrid_variants_v12.png
0 → 100644
52.4 KB
CRF/bin/FiguresGrid_varinats_v12.png
deleted
100644 → 0
156 KB
| ... | @@ -120,10 +120,29 @@ if __name__ == '__main__': | ... | @@ -120,10 +120,29 @@ if __name__ == '__main__': |
| 120 | plt.ylabel("score") | 120 | plt.ylabel("score") |
| 121 | plt.ylim(-0.2, 1.2) | 121 | plt.ylim(-0.2, 1.2) |
| 122 | #lines=['-', '--', '-.', ':', ',', 'o', 'v', '^', '<', '>', '1', '2', '3', '4', 's', 'p', '*', 'h', 'H', '+', 'x', 'D', 'd', '|', '_'] | 122 | #lines=['-', '--', '-.', ':', ',', 'o', 'v', '^', '<', '>', '1', '2', '3', '4', 's', 'p', '*', 'h', 'H', '+', 'x', 'D', 'd', '|', '_'] |
| 123 | - lines = [ 'r--', 'rs', 'r^', 'r:', 'rH', 'g--', 'gs', 'g^', 'g|', 'gH' , 'b--', 'bs', 'b^', 'b|', 'bH', 'r+'] | 123 | + #lines = [ 'r--', 'rs', 'r^', 'r:', 'rH', 'g--', 'gs', 'g^', 'g|', 'gH' , 'b--', 'bs', 'b^', 'b|', 'bH', 'r+'] |
| 124 | + lines = [ 'r--', 'r-.', 'r:', 'g--', 'g-.', 'g:', 'b--', 'b-.', 'b:' , 'm--', 'm-.', 'm:', 'c--', 'c-.', 'c:'] | ||
| 124 | for i,k in enumerate(tags.keys()): | 125 | for i,k in enumerate(tags.keys()): |
| 125 | plt.grid(False) | 126 | plt.grid(False) |
| 126 | - plt.plot(precision[k], lines[i], label=k, linewidth=8) | 127 | + plt.plot(precision[k], lines[i], label=k, linewidth=(15-i)*2) |
| 128 | + plt.legend(loc='lower right') | ||
| 129 | + plt.tight_layout() | ||
| 130 | + plt.xticks(range(8),['run1', 'run2', 'run3', 'run4', 'run5', 'run6', 'run7', 'run8']) | ||
| 131 | + fig.savefig(imageName, bbox_inches='tight', pad_inches = 0.5) | ||
| 132 | + | ||
| 133 | + imageName = str(options.figureName) + '_variants_' + str(options.version) | ||
| 134 | + fig = plt.figure() | ||
| 135 | + plt.rcParams.update({'font.size': 15}) | ||
| 136 | + fig.set_figheight(13) | ||
| 137 | + fig.set_figwidth(20) | ||
| 138 | + plt.xlabel("Runs") | ||
| 139 | + plt.ylabel("score") | ||
| 140 | + plt.ylim(-0.2, 1.2) | ||
| 141 | + variantTags = [k for k in tags.keys() if len(set(tags[k]))>1 ] | ||
| 142 | + lines = [ 'r^', 'ro', 'g^', 'go', 'b^', 'bo' , 'm^', 'mo', 'c^', 'co', 'ch', 'rh', 'gh', 'bh','mh'] | ||
| 143 | + for i,k in enumerate(variantTags): | ||
| 144 | + plt.grid(False) | ||
| 145 | + plt.plot(precision[k], lines[i], label=k, linewidth=(15-i)*2) | ||
| 127 | plt.legend(loc='lower right') | 146 | plt.legend(loc='lower right') |
| 128 | plt.tight_layout() | 147 | plt.tight_layout() |
| 129 | plt.xticks(range(8),['run1', 'run2', 'run3', 'run4', 'run5', 'run6', 'run7', 'run8']) | 148 | plt.xticks(range(8),['run1', 'run2', 'run3', 'run4', 'run5', 'run6', 'run7', 'run8']) | ... | ... |
-
Please register or login to post a comment