Skip to content

matplotlib: plot a face using circles #4098

@ritikag06

Description

@ritikag06

import matplotlib.pyplot as plt

radius=float(30)
circle=plt.Circle((15,30),radius, facecolor= 'white', edgecolor='black',linestyle='solid',linewidth='2.2')
plt.gca().add_patch(circle)
plt.plot()
plt.title('Circle')
plt.show()
Circle(float(radius))

I have made a circle using the code above but I am trying to make another one for the eye inside of this one but it is not showing up if I duplicate this code and change it to be smaller. How can I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions