最近讨论比较火的小米新Logo,今天闲着无聊画画看,哈哈哈。
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-1, 1, 100000)
y = np.power(1 - np.abs(x)**3, 1/3)
x_all = np.concatenate([x, x])
y_all = np.concatenate([y, -y])
plt.figure(figsize=[6, 6])
plt.scatter(x_all, y_all, s=1, c="orange")
plt.show()