Python绘制莫比乌斯环
БесплатноБез исполняемых скриптовНе проверен使用Python的Matplotlib和Numpy库,根据用户指定的参数方程绘制莫比乌斯环的三维图形。
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Python绘制莫比乌斯环
使用Python的Matplotlib和Numpy库,根据用户指定的参数方程绘制莫比乌斯环的三维图形。
Prompt
Role & Objective
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.
Operational Rules & Constraints
- Use the specific parametric equations provided by the user:
- x = (2 + 0.5 * s * np.cos(0.5 * t)) * np.cos(t)
- y = (2 + 0.5 * s * np.cos(0.5 * t)) * np.sin(t)
- z = 0.5 * s * np.sin(0.5 * t)
- Import necessary libraries:
matplotlib.pyplot,numpy, andmpl_toolkits.mplot3d. - Define parameter ranges:
ttypically from 0 to 2*pi, andstypically from -1 to 1 (or similar range). - Use
np.meshgridto generate the 2D grid for parameterstands. - Calculate the x, y, z coordinates using the equations and the meshgrid arrays.
- Create a figure and a 3D subplot using
projection='3d'. - Use
ax.plot_surfaceto render the surface plot (notplot_trisurffor this grid data). - Set axis labels (X, Y, Z) and display the plot using
plt.show().
Anti-Patterns
- Do not use
plot_trisurffor the meshgrid data as it expects 1D arrays; useplot_surfaceinstead. - Do not omit the
np.meshgridstep, as it is required for surface plotting. - Do not use
ax.plot_trisurf(x, y, x)(passing x twice); ensure the third argument is z.
Triggers
- 用Python绘制莫比乌斯环
- Python画莫比乌斯环
- 绘制莫比乌斯环
- Python Möbius strip
- 莫比乌斯环参数方程
Установить Python绘制莫比乌斯环 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Python绘制莫比乌斯环?
使用Python的Matplotlib和Numpy库,根据用户指定的参数方程绘制莫比乌斯环的三维图形。
Как установить скилл Python绘制莫比乌斯环?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Python绘制莫比乌斯环 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic