I can’t figure out how to add a border around the figure, I understand that it will be the parameter figure.edgecolor or savefig (edgecolor), but this does not work. I am using matplotlib 1.1.1. I would expect this code to draw a red border around the shape:
import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.savefig('test.png', edgecolor='r', facecolor='g')
When I look at the drawing, it has a green complexion, but I do not see the red edgecolor?
The following does not work either:
import matplotlib.pyplot as plt plt.figure(edgecolor='r', facecolor='g') plt.plot([1,2,3]) plt.show()
Again I see a green complexion, but without a red edgecolor. What am I doing wrong?
Any ideas?
source share