Created
July 26, 2021 17:14
-
-
Save Rahuls66/a484ae399ed1beabdfe0b98f7367f469 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
data = np.random.randint(20, 100, 6) | |
plt.pie(data) | |
circle = plt.Circle( (0,0), 0.7, color='white') | |
p=plt.gcf() | |
p.gca().add_artist(circle) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment