#我有以下Python代码:
import math
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from mpl_toolkits.mplot3d import Axes3D
from scipy.integrate import quad
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import FillBetween3d
import numpy as np
import matplotlib.tri as mtri
from stl import mesh
daylightamount = []
fig = plt.figure()
ax = Axes3D(fig, xlim=(0, 365), ylim=(0, 27), zlim=(-90, 90))
ax.set_xlabel('Month')
ax.set_ylabel('Hours of Daylight per day')
ax.set_zlabel('Latitude')
ax.set_title("Hours of daylight throughout the year")
ax.set_yticks([0, 4, 8, 12, 16, 20, 24])
ax.set_zticks([-90, -60, -45, -30, 0, 30, 45, 60, …Run Code Online (Sandbox Code Playgroud)