+ 1

How can I add a border in the polygon which is generated from my code

https://sololearn.com/compiler-playground/chZx9IYwtPow/?ref=app

9th Mar 2024, 9:32 AM
P A Arrchith Iyer
P A Arrchith Iyer - avatar
2 Antworten
+ 3
# ….. your code ax.patch.set_linewidth(1) ax.patch.set_edgecolor('black') plt.savefig("Polygon_Generator.png")
9th Mar 2024, 10:28 AM
JaScript
JaScript - avatar
+ 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.
9th Mar 2024, 10:10 AM
Lisa
Lisa - avatar