Skip to content

Commit

Permalink
xtick and labels alignement improved
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Oct 8, 2018
1 parent 2916830 commit dfc6128
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/plotAndReport
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if __name__ == "__main__":
fac = -1
else:
fac = 0.05
plt.text(a, b + fac, str(round(b, 3)), color="red")
plt.text(a, b + fac, str(round(b, 3)), color="red", ha="center")

# plt.grid(True)

Expand All @@ -132,11 +132,11 @@ if __name__ == "__main__":

if minratio < 0:
plt.yticks((np.arange(minratio - step, maxratio + 2 * step, step)),
(ticklist), rotation="vertical")
(ticklist))
else:
plt.yticks((np.arange(-(2 * step), maxratio + 2 * step, step)),
(ticklist), rotation="vertical")
plt.xticks(rotation='45')
(ticklist))
plt.xticks(rotation='45', ha="right", rotation_mode="anchor")
plt.yticks(rotation='45')
plt.subplots_adjust(bottom=0.4, left=0.19)

Expand Down

0 comments on commit dfc6128

Please sign in to comment.