Wednesday, July 13, 2011

Removing the top and right lines in the axis box in matplotlib

From here:
ax.axis["right"].set_visible(False)
ax.axis["top"].set_visible(False)
Where ax is an axis instance (you can get it using pylab.axis())

PS. Those lines are called spines, in case you haven't caught on

No comments:

Post a Comment