Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
import numpy as np
fig, ax = plt.subplots(figsize=(6, 6))
theta = np.linspace(0, 2 * np.pi, 100)
r = 1
x1 = r * np.cos(theta) - 1.0
y1 = r * np.sin(theta)
x2 = r * np.cos(theta) + 1.0
y2 = r * np.sin(theta)
nipple_radius = 0.2
x1_nipple = nipple_radius * np.cos(theta) - 1.0
y1_nipple = nipple_radius * np.sin(theta)
x2_nipple = nipple_radius * np.cos(theta) + 1.0
y2_nipple = nipple_radius * np.sin(theta)
ax.plot(x1, y1, 'r')
ax.plot(x2, y2, 'r')
ax.fill(x1_nipple, y1_nipple, 'brown')
ax.fill(x2_nipple, y2_nipple, 'brown')
ax.set_xlim(-3, 3)
ax.set_ylim(-2, 2)
ax.set_aspect('equal')
ax.axis('off')
plt.show()
_/﹋\_
(҂`_´)