Is there a way to change the color of an axis (not the ticks) in matplotlib? I have been looking through the docs for Axes, Axis, and Artist, but no luck; the matplotlib gal
You can do it by adjusting the default rc settings.
import matplotlib from matplotlib import pyplot as plt matplotlib.rc('axes',edgecolor='r') plt.plot([0, 1], [0, 1]) plt.savefig('test.png')