Save statistics to svg

This commit is contained in:
Nick Østergaard 2016-08-02 18:40:36 +02:00
parent 8388e1761e
commit d5a4650fe0
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ Makefile
CMakeFiles/* CMakeFiles/*
*.pot *.pot
.DS_Store .DS_Store
i18n_status.svg

View File

@ -61,7 +61,11 @@ ax.set_xticklabels(list(zip(*data))[0][1:])
ax.yaxis.grid(True, which='both') # horizontal lines ax.yaxis.grid(True, which='both') # horizontal lines
ax.legend((rects1[0], rects2[0], rects3[0]), ('TRANSLATED', 'FUZZY', 'UNTRANSLATED'), loc='upper center', bbox_to_anchor=(0.5, -0.05), fancybox=True, ncol=3) ax.legend((rects1[0], rects2[0], rects3[0]), ('TRANSLATED', 'FUZZY', 'UNTRANSLATED'), loc='upper center', bbox_to_anchor=(0.5, -0.05), fancybox=True, ncol=3)
plt.figtext(0.99, 0.96, time.strftime("%d/%m %Y"), horizontalalignment='right') plt.figtext(0.99, 0.96, time.strftime("%d/%m %Y"), horizontalalignment='right')
plt.subplots_adjust(left=0.05, right=0.99, top=0.95, bottom=0.1) plt.subplots_adjust(left=0.07, right=0.99, top=0.95, bottom=0.12)
fig.set_size_inches(12, 8)
fig.savefig('i18n_status.svg')
# Show the magic to the user # Show the magic to the user
plt.show() plt.show()