Skip to content

Instantly share code, notes, and snippets.

@Rahuls66
Created July 26, 2021 17:14
Show Gist options
  • Save Rahuls66/a484ae399ed1beabdfe0b98f7367f469 to your computer and use it in GitHub Desktop.
Save Rahuls66/a484ae399ed1beabdfe0b98f7367f469 to your computer and use it in GitHub Desktop.
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