|
From: Daryl H. <ak...@gm...> - 2014-01-22 14:21:35
|
Hello,
I'm wondering why stuff plotted with ax.text() does not get "clipped" by
the axes bounds on the plot. Here's a simple example, run with 1.3.1:
import matplotlib.pyplot as plt
(fig, ax) = plt.subplots(1,1)
for i in range(5):
for j in range(5):
ax.text(i,j, "%sx%s" % (i,j), ha='center', va='center')
ax.plot([0,8],[0,8])
ax.set_xlim(0,2.8)
ax.set_ylim(0,2.8)
fig.savefig('test.png')
and attached output. This causes me lots of grief with basemap as well.
Is there a non-brute-force trick to get these values plotted outside the
axes bounds removed?
daryl
|