Community图像github.com

davila7/scientific-visualization

使用 matplotlib/seaborn/plotly 创建出版级图表。支持多面板布局、误差线、显著性标记、色盲友好设计,并可导出 PDF/EPS/TIFF 格式,生成符合期刊要求的科学图表。

scientific-visualization 是什么?

该技能专为需要生成出版级科学图表的开发者和研究人员设计,支持 matplotlib、seaborn 和 plotly 等主流 Python 可视化库。它能帮助你快速创建多面板布局、添加误差线和统计显著性标记,并确保颜色方案对色盲用户友好。技能还支持导出为 PDF、EPS 或 TIFF 等矢量或高分辨率格式,满足期刊投稿要求。适用于 Claude Code、Cursor 和 Codex 等 AI 编程助手,通过清晰的指令减少手动调整图表参数的时间,让用户专注于数据分析和故事讲述。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/davila7/claude-code-templates/tree/main/skills/scientific-visualization

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

scientific-visualization 是做什么的?

使用 matplotlib/seaborn/plotly 创建出版级图表。支持多面板布局、误差线、显著性标记、色盲友好设计,并可导出 PDF/EPS/TIFF 格式,生成符合期刊要求的科学图表。

功能特性

  • 多面板布局:轻松创建包含多个子图的复杂图形,支持 plt.subplots, GridSpec 和 seaborn.FacetGrid。
  • 误差线与误差带:使用 plt.errorbar, seaborn.lineplot(ci=...) 或 plotly express 的误差条功能。
  • 统计显著性标记:自动或手动添加星号(*)、横线和括号表示组间显著性差异。
  • 色盲友好调色板:采用 seaborn.color_palette('colorblind') 或 plotly 的离散颜色序列,确保可读性。
  • 出版级导出:支持矢量格式(PDF, EPS)和高分辨率位图(TIFF, 300+ DPI),符合期刊要求。

使用示例

import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np

# 设置色盲友好样式
sns.set_palette('colorblind')
plt.rcParams.update({'figure.dpi': 300, 'savefig.dpi': 300})

# 创建多面板图
fig, axes = plt.subplots(1, 2, figsize=(10, 4))

# 面板1:带误差线的柱状图
data1 = np.random.normal(loc=[2, 3, 4], scale=0.5, size=(30, 3))
means = data1.mean(axis=0)
errors = data1.std(axis=0)
axes[0].bar(['A', 'B', 'C'], means, yerr=errors, capsize=5)
axes[0].set_title('实验组比较')

# 面板2:带显著性标记的箱线图
sns.boxplot(data=data1, ax=axes[1])
axes[1].set_title('分布与异常值')

# 添加显著性标记(示例)
ax = axes[0]
ax.annotate('', xy=(0, 4.5), xytext=(1, 4.5),
            arrowprops=dict(arrowstyle='-', color='black'))
ax.text(0.5, 4.6, '***', ha='center', va='bottom')

plt.tight_layout()
plt.savefig('figure.pdf', format='pdf')
plt.show()

支持的平台

  • Claude Code:通过自然语言指令直接生成图表代码。
  • Cursor:在编辑器中实时协作修改可视化参数。
  • Codex(如 OpenAI Codex):根据描述生成可执行脚本。

环境变量

  • MATPLOTLIBRC:自定义 matplotlib 配置路径。
  • MPLBACKEND:设置后端(推荐 Agg 用于无头导出)。

注意事项

  • 导出为 EPS 时,请确保系统安装了 LaTeX 或 dvipng(用于文本渲染)。
  • 对于大量数据,建议使用 plotly 的交互式模式或 seaborn 的统计聚合功能。
  • 色盲友好调色板最适合离散类别;连续数据可搭配 viridis 或 cividis。

许可证

MIT

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

davila7/citation-management

Comprehensive citation management for academic research. Search Google Scholar and PubMed for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

davila7/claude-code-templates

Balance visual design with ATS compatibility for creative roles. Use when the user is in design, art, writing, marketing creative, or any visual/creative field and needs a resume that looks distinctive but still parses.

davila7/claude-code-templates

Optimize resumes for software engineering, product management, and technical roles. Use when the user mentions software engineer, developer, PM, data scientist, ML, DevOps, or other technical role resumes.

davila7/claude-code-templates

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities. Use when: portfolio, personal website, showcase work, developer portfolio, designer portfolio.

davila7/claude-code-templates

Create premium, Awwwards-quality website designs as React (.jsx) components that look like they were built by a top-tier agency charging $50k+ per project. Use this skill whenever the user asks for a website, landing page, portfolio, or web component that should look expensive, premium, luxury, editorial, high-end, or agency-quality. Also trigger when the user mentions Awwwards, FWA, award-winning design, or references brands like Apple, Aesop, Bottega Veneta, Stripe, or any luxury/fashion/design-forward brand. Trigger when the user says things like "make it look professional", "make it look expensive", "I want it to look really good", "high quality design", "not generic", or expresses dissatisfaction with typical AI-generated website aesthetics. Do NOT trigger for dashboards, admin panels, internal tools, or functional UI where aesthetics are secondary to utility — the standard frontend-design skill handles those.

davila7/claude-code-templates

Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.

davila7/claude-code-templates

When the user wants to optimize, improve, or increase conversions on any marketing page — including homepage, landing pages, pricing pages, feature pages, or blog posts. Also use when the user says "CRO," "conversion rate optimization," "this page isn't converting," "improve conversions," or "why isn't this page working." For signup/registration flows, see signup-flow-cro. For post-signup activation, see onboarding-cro. For forms outside of signup, see form-cro. For popups/modals, see popup-cro.

davila7/excel-analysis

Analyze Excel spreadsheets, create pivot tables, generate charts, and perform data analysis. Use when analyzing Excel files, spreadsheets, tabular data, or .xlsx files.

davila7/exploratory-data-analysis

Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats. This skill should be used when analyzing any scientific data file to understand its structure, content, quality, and characteristics. Automatically detects file type and generates detailed markdown reports with format-specific analysis, quality metrics, and downstream analysis recommendations. Covers chemistry, bioinformatics, microscopy, spectroscopy, proteomics, metabolomics, and general scientific data formats.

davila7/generate-image

Generate or edit images using AI models (FLUX, Gemini). Use for general-purpose image generation including photos, illustrations, artwork, visual assets, concept art, and any image that isn't a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.

davila7/jira

Use when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.

davila7/literature-review

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature searches across biomedical, scientific, and technical domains. Creates professionally formatted markdown documents and PDFs with verified citations in multiple citation styles (APA, Nature, Vancouver, etc.).

davila7/marketing-strategy-pmm

Product marketing, positioning, GTM strategy, and competitive intelligence. Includes ICP definition, April Dunford positioning methodology, launch playbooks, competitive battlecards, and international market entry guides. Use when developing positioning, planning product launches, creating messaging, analyzing competitors, entering new markets, enabling sales, or when user mentions product marketing, positioning, GTM, go-to-market, competitive analysis, market entry, or sales enablement.

davila7/market-research-reports

Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter's Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.

davila7/markitdown

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

davila7/mermaid-diagram-specialist

Mermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations

davila7/mobile-design

Mobile-first design thinking and decision-making for iOS and Android apps. Touch interaction, performance patterns, platform conventions. Teaches principles, not fixed values. Use when building React Native, Flutter, or native mobile apps.

davila7/prompt-engineer

Expert in designing effective prompts for LLM-powered applications. Masters prompt structure, context management, output formatting, and prompt evaluation. Use when: prompt engineering, system prompt, few-shot, chain of thought, prompt design.

davila7/remotion

Best practices and comprehensive guide for Remotion - programmatic video creation in React with animations, compositions, and media handling

davila7/scientific-slides

Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.

相关技能