Skip to content

Instantly share code, notes, and snippets.

@satomacoto
Created March 13, 2012 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satomacoto/2027373 to your computer and use it in GitHub Desktop.
Save satomacoto/2027373 to your computer and use it in GitHub Desktop.
matplotlib - circle
import matplotlib.pyplot as plt
circle1=plt.Circle((0,0),.2,color='r')
circle2=plt.Circle((.5,.5),.2,color='b')
circle3=plt.Circle((1,1),.2,color='g',clip_on=False)
fig = plt.gcf()
fig.gca().add_artist(circle1)
fig.gca().add_artist(circle2)
fig.gca().add_artist(circle3)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment