小编Vin*_* W.的帖子

如何从 python 中使用 matplotlib 创建的 3D 图形创建 stl 文件?

#我有以下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)

python 3d graph matplotlib

6
推荐指数
0
解决办法
315
查看次数

标签 统计

3d ×1

graph ×1

matplotlib ×1

python ×1