Kjw1

Untitled

Apr 29th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2.  
  3. # Create figure and axis
  4. fig, ax = plt.subplots()
  5.  
  6. # Draw the big circle
  7. big_circle = plt.Circle((0.5, 0.5), 0.4, color='white', edgecolor='black', linewidth=2)
  8. ax.add_artist(big_circle)
  9.  
  10. # Set aspect ratio to be equal
  11. ax.set_aspect('equal')
  12.  
  13. # Set axis limits
  14. ax.set_xlim(0, 1)
  15. ax.set_ylim(0, 1)
  16.  
  17. # Remove axes
  18. ax.axis('off')
  19.  
  20. # Show the plot
  21. plt.show()
  22.  
Advertisement
Add Comment
Please, Sign In to add comment