← 返回
开发者工具 中文

Figure Legend Gen

Generate standardized figure legends for scientific charts and graphs. Trigger when user uploads/requesting legend for research figures, academic papers, or...
为科研图表和学术论文生成标准化图例说明。用户上传或请求图表图例时触发。
aipoch-ai
开发者工具 clawhub v1.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 816
下载
💾 136
安装
2
版本
#figure#figure legends#latest#scientific-writing

概述

Figure Legend Generator

Generate publication-quality figure legends for scientific research charts and images.

Supported Chart Types

Chart TypeDescription
-------------------------
Bar ChartCompare values across categories
Line GraphShow trends over time or continuous data
Scatter PlotDisplay relationships between variables
Box PlotShow distribution and outliers
HeatmapDisplay matrix data intensity
MicroscopyFluorescence/confocal images
Flow CytometryFACS plots and histograms
Western BlotProtein expression bands

Usage

python scripts/main.py --input <image_path> --type <chart_type> [--output <output_path>]

Parameters

ParameterRequiredDescription
----------------------------------
--inputYesPath to chart image
--typeYesChart type (bar/line/scatter/box/heatmap/microscopy/flow/western)
--outputNoOutput path for legend text (default: stdout)
--formatNoOutput format (text/markdown/latex), default: markdown
--languageNoLanguage (en/zh), default: en

Examples

# Generate legend for bar chart
python scripts/main.py --input figure1.png --type bar

# Save to file
python scripts/main.py --input plot.jpg --type line --output legend.md

# Chinese output
python scripts/main.py --image.png --type scatter --language zh

Legend Structure

Generated legends follow academic standards:

  1. Figure Number - Sequential numbering
  2. Brief Title - Concise description
  3. Main Description - What the figure shows
  4. Data Details - Key statistics/measurements
  5. Methodology - Brief experimental context
  6. Statistics - P-values, significance markers
  7. Scale Bars - For microscopy images

Technical Notes

  • Difficulty: Low
  • Dependencies: PIL, pytesseract (optional OCR)
  • Processing: Vision analysis for chart type detection
  • Output: Structured markdown by default

References

  • references/legend_templates.md - Templates by chart type
  • references/academic_style_guide.md - Formatting guidelines

Risk Assessment

Risk IndicatorAssessmentLevel
-----------------------------------
Code ExecutionPython scripts with toolsHigh
Network AccessExternal API callsHigh
File System AccessRead/write dataMedium
Instruction TamperingStandard prompt guidelinesLow
Data ExposureData handled securelyMedium

Security Checklist

  • [ ] No hardcoded credentials or API keys
  • [ ] No unauthorized file system access (../)
  • [ ] Output does not expose sensitive information
  • [ ] Prompt injection protections in place
  • [ ] API requests use HTTPS only
  • [ ] Input validated against allowed patterns
  • [ ] API timeout and retry mechanisms implemented
  • [ ] Output directory restricted to workspace
  • [ ] Script execution in sandboxed environment
  • [ ] Error messages sanitized (no internal paths exposed)
  • [ ] Dependencies audited
  • [ ] No exposure of internal service architecture
  • Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • [ ] Successfully executes main functionality
  • [ ] Output meets quality standards
  • [ ] Handles edge cases gracefully
  • [ ] Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:
  • Performance optimization
  • Additional feature support

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-05-01 02:52 安全 安全
  • v1.0.0
    2026-03-30 03:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,726
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,830
data-analysis

Survival Analysis (KM)

aipoch-ai
生成Kaplan‑Meier生存曲线,计算生存统计量(log‑rank检验、中位生存时间),并估算临床及生物...的 hazard ratios。
★ 2 📥 902