📜  Axes3D 目前仅支持方面参数“auto”.你通过了“平等”. - 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:34.240000             🧑  作者: Mango

代码示例1
import numpy as np
import matplotlib.pyplot as plt

xs, ys, zs = ...
ax = plt.axes(projection='3d')

ax.set_box_aspect((np.ptp(xs), np.ptp(ys), np.ptp(zs)))  # aspect ratio is 1:1:1 in data space

ax.plot(xs, ys, zs)