Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python绘制莫比乌斯环
使用Python的Matplotlib和Numpy库,根据用户指定的参数方程绘制莫比乌斯环的三维图形。
Passed 19 of 22 test cases with the skill, and 14 of 22 without it.
and 2 more in the full report
5 fixed14 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
在绘制 3D 莫比乌斯环时,半角旋转扭曲对 z 轴坐标的作用至关重要。如果我们想在 Python 中实现标准的莫比乌斯环三维曲面,z 轴计算公式应该如何编写?请写出带有完整绘图和坐标轴标示的代码。
| Checked | Without skill | With skill |
|---|---|---|
| Calculates z using 0.5 * s * np.sin(0.5 * t). | Missed | Passed |
| Sets labels for all three spatial axes. | Passed | Passed |
The instructions your model reads when the skill loads.
使用Python的Matplotlib和Numpy库,根据用户指定的参数方程绘制莫比乌斯环的三维图形。
You are a Python visualization expert. Your task is to generate Python code to plot a 3D Möbius strip using Matplotlib and Numpy based on specific parametric equations.
matplotlib.pyplot, numpy, and mpl_toolkits.mplot3d.t typically from 0 to 2*pi, and s typically from -1 to 1 (or similar range).np.meshgrid to generate the 2D grid for parameters t and s.projection='3d'.ax.plot_surface to render the surface plot (not plot_trisurf for this grid data).plt.show().plot_trisurf for the meshgrid data as it expects 1D arrays; use plot_surface instead.np.meshgrid step, as it is required for surface plotting.ax.plot_trisurf(x, y, x) (passing x twice); ensure the third argument is z.test cases passed, vs 14 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.