Untitled

 avatar
unknown
plain_text
10 months ago
1.1 kB
3
Indexable
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse, Arc

# Create a figure and axis
fig, ax = plt.subplots(figsize=(8, 8))
ax.set_xlim(0, 10)
ax.set_ylim(0, 10)
ax.axis('off')

# Define colors
line_color = '#2E8B57'  # Calming shade of green
fill_color = '#98FB98'  # Lighter shade of green for filling

# Draw the reclining figure forming an "A"
# Ellipse for the head
head = Ellipse((5, 8), width=1, height=1.5, edgecolor=line_color, facecolor=fill_color, linewidth=2)
ax.add_patch(head)

# Arc for the body
body = Arc((5, 5), width=8, height=6, theta1=0, theta2=180, edgecolor=line_color, linewidth=2)
ax.add_patch(body)

# Lines for arms and legs (forming the rest of "A")
ax.plot([5, 3], [8, 5], color=line_color, linewidth=2)
ax.plot([5, 7], [8, 5], color=line_color, linewidth=2)
ax.plot([3, 4.5], [5, 3], color=line_color, linewidth=2)
ax.plot([7, 5.5], [5, 3], color=line_color, linewidth=2)

# Adding the brand name "Amapholas" below the figure
ax.text(5, 1, 'Amapholas', fontsize=30, color=line_color, ha='center', va='center', family='sans-serif')

plt.show()
Editor is loading...
Leave a Comment