Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →使用Python的Matplotlib和Numpy库,根据用户指定的参数方程绘制莫比乌斯环的三维图形。
.claude/skills/ecnu-icalk-python-d1d899/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -14% | 0% |
使用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 2pi, 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.Other measured skills in the registry, with their headline benchmark lift.