+ 1
How can I add a border in the polygon which is generated from my code
https://sololearn.com/compiler-playground/chZx9IYwtPow/?ref=app
2 Antworten
+ 3
# ….. your code
ax.patch.set_linewidth(1)
ax.patch.set_edgecolor('black')
plt.savefig("Polygon_Generator.png")
+ 2
This is the documentation:
https://matplotlib.org/stable/gallery/lines_bars_and_markers/fill.html
The documentation documents how to use the functions and methods.
Look at the example with facecolor and edgecolor.