1
0
Fork 0
mirror of https://github.com/Findus23/collision-analyisis-and-interpolation.git synced 2024-09-19 15:13:50 +02:00

add brackets to cov.pdf

This commit is contained in:
Lukas Winkler 2019-08-21 14:13:21 +02:00
parent a2ed1f2ae6
commit 8d31781150
Signed by: lukas
GPG key ID: 54DE4D798D244853

2
cov.py
View file

@ -39,7 +39,7 @@ plt.barh(range(len(simple_cov)), simple_cov)
# ax.set_xticks(index + bar_width / 2)
ax.set_yticklabels([0] + labels)
ax2 = ax.twinx() # type:Axes
ax2.set_yticklabels([0] + ["{:.2f}".format(a) for a in simple_cov])
ax2.set_yticklabels([0] + ["({:.2f})".format(a) for a in simple_cov])
ax2.set_ylim(ax.get_ylim())
plt.tight_layout()
plt.savefig("../arbeit/images/cov.pdf")