import matplotlib.pyplot as plt from matplotlib.patches import Polygon # Create figure and axis fig, ax = plt.subplots() # Draw the open book book_base = Polygon([[1, 1], [5, 0], [9, 1], [5, 2]], closed=True, edgecolor='brown', facecolor='none', linewidth=2) ax.add_patch(book_base) book_pages_left = Polygon([[1, 1], [5, 1.5], [5, 2], [1, 1]], closed=True, edgecolor='tan', facecolor='none', linewidth=1) ax.add_patch(book_pages_left) book_pages_right = Polygon([[9, 1], [5, 1.5], [5, 2], [9, 1]], closed=True, edgecolor='tan', facecolor='none', linewidth=1) ax.add_patch(book_pages_right) # Draw the ballet dancer on pointe dancer = Polygon([[5, 2], [5.1, 2.3], [5.2, 2], [5.15, 2.3], [5.25, 2], [5.3, 2.5], [5.1, 2.5]], closed=False, edgecolor='pink', facecolor='none', linewidth=2) ax.add_patch(dancer) # Head ax.plot([5.15], [2.35], marker='o', markersize=5, color='pink') # Set limits and aspect ratio ax.set_xlim(0, 10) ax.set_ylim(0, 3) ax.set_aspect('equal') # Remove axes ax.axis('off') # Show plot plt.show()