With the following boxplot:
import matplotlib.pyplot as plt
plt.text(0.7, 0.7, "test", size=50,
ha="right", va="top",
bbox=dict(boxstyle="square")
)
plt.show()
How can you change the length of the box without changing the width?
EDIT:
What I want is:
plt.text(0.05, 0.7, " test ", size=50, va="top",
bbox=dict(boxstyle="square"))
But using spaces in the string seems like a pretty ugly solution. There's another way?