matplotlib.rc_file_defaults()
fig = plt.figure(figsize = (8,8))
ax = fig.add_subplot(xlim = (-21, 21),
ylim = (-21, 21))
#Remove axes and ticks.
ax.spines["top"].set_visible(False)
ax.spines["right"].set_visible(False)
ax.spines["bottom"].set_visible(False)
ax.spines["left"].set_visible(False)
ax.set_xticks([])
ax.set_yticks([])
#Universe.
universe = mpC(xy = (0, 0),
radius = 20,
alpha = 0.3,
facecolor = '#481567',
zorder = 1)
universe2 = mpA(xy = (0, 0),
height = 40,
width = 13.33,
theta1 = 270,
theta2 = 90,
ls = ':',
lw = 3,
alpha = 0.5,
edgecolor = '#481567',
zorder = 1)
universe3 = mpA(xy = (0, 0),
height = 40,
width = 13.33,
theta1 = 90,
theta2 = 270,
ls = ':',
lw = 3,
edgecolor = '#481567',
zorder = 3)
ax.add_patch(universe)
ax.add_patch(universe2)
ax.add_patch(universe3)
#Left.
xs = [0]
ys = [0]
for theta in range(-1000,1001):
theta = theta/100
xs.append(-20*math.cos(math.radians(theta)))
ys.append(20*math.sin(math.radians(theta)))
xs.append(0)
ys.append(0)
ax.fill(xs, ys, facecolor = '#1F968B', alpha = 0.3, zorder = 2)
ax.plot(xs, ys, color = '#1F968B', ls = ":", lw = 3, zorder = 2)
#Accretion.
accretion = mpE(xy = (0, 0),
height = 12,
width = 4,
alpha = 0.8,
facecolor = '#FFCF20',
ls = '-',
lw = 4,
edgecolor = '#FFCF20',
zorder = 3)
ax.add_patch(accretion)
#Right.
xsr = [-1*x for x in xs]
ax.fill(xsr, ys, facecolor = '#1F968B', alpha = 0.8, zorder = 4)
ax.plot(xsr, ys, color = '#1F968B', ls = ":", lw = 3, zorder = 4)
#Black Hole.
ax.scatter(0,0, s = 100, c= "black", zorder = 5)
fig.savefig('2021.05.20 Classic.png');