Skip to content

Instantly share code, notes, and snippets.

@SAshokkumar
SAshokkumar / indianflag.py
Created August 15, 2022 17:38 — forked from amarjeetsahoo/indianflag.py
Python code to display indian flag
import numpy as np
import matplotlib.pyplot as py
import matplotlib.patches as patch
a = patch.Rectangle((0,1), width=12, height=2, facecolor='green', edgecolor='grey')
b = patch.Rectangle((0,3), width=12, height=2, facecolor='white', edgecolor='grey')
c = patch.Rectangle((0,5), width=12, height=2, facecolor='#FF9933', edgecolor='grey')
m,n= py.subplots()
n.add_patch(a)