跳到主要内容
火花工坊
一个线性流程图提示词:无判断无循环,附 Mermaid 代码版

一个线性流程图提示词:无判断无循环,附 Mermaid 代码版

来源:GitHub 仓库 XYD-GIS/paper-toolkits 文件约 90 行,约 4 KB

一个线性流程图提示词。

它解决的是:方法/实验有 ≥ 3 个先后顺序的步骤,无判断、无循环、无分支。

它的结构:

  • 布局:横向从左到右,5 个节点单行等距排列
  • 节点:Start 用圆角椭圆(软蓝 #D6E4F0),Step 1-3 用圆角矩形(软灰 #E5E7EB),End 用圆角椭圆(软绿 #D8E8D0)
  • 连接:顺序实线黑箭头(2-3px),可选斜体灰色短标签(最多 3 词)
  • 文字:顶部居中加粗标题,节点标签加粗(≤ 3 词),箭头标签斜体灰(≤ 3 词)
  • 风格:扁平矢量、NeurIPS/ICML 图审美、Arial、粉彩、纯白底、16:9
  • 负向约束:不要照片、不要 3D 阴影、不要投影、不要卡通、不要 emoji、不要难读文字、不要交叉箭头、不要双向箭头、不要图表垃圾

填空示例(数据预处理流程):见提示词本体里的填空示例。

调优提示:

  • 生成的箭头乱跑 → 加 "all arrows strictly horizontal, no curves"
  • 节点比例不一致 → 加 "all rounded rectangles have the same height and width"
  • 文字渲染不准 → 把所有节点 label 用双引号严格围住
  • 想要垂直版本 → 把 Horizontal flow 改为 Vertical flow,aspect ratio 改为 9:16

Mermaid 代码版(可放进 LaTeX、可永远清晰): flowchart LR A([Raw Data]) --> B[Cleaning] B --> C[Normalization] C --> D[Feature Selection] D --> E([Ready Dataset])

直接粘到 https://mermaid.live 可看预览并导出 SVG/PNG。

适合谁:

  • 写论文要画线性流程图的科研小组成员
  • 方法有多个先后步骤、无判断无循环的人
  • 想要 NeurIPS/ICML 图审美或 Mermaid 版本的人

用法: 把这段提示词复制到 AI 工具里,把占位符填上就行。

提示词

A linear flowchart for an academic paper on {主题}.

LAYOUT: Horizontal flow from left to right, {步骤数量,如 five} nodes arranged in a single row with equal spacing.

NODES:
- Start: rounded oval with thick border, label "{起始节点名}", soft blue fill #D6E4F0
- Step 1: rounded rectangle, label "{步骤 1 名称}", soft gray fill #E5E7EB
- Step 2: rounded rectangle, label "{步骤 2 名称}", soft gray fill #E5E7EB
- Step 3: rounded rectangle, label "{步骤 3 名称}", soft gray fill #E5E7EB
- End: rounded oval with thick border, label "{结束节点名}", soft green fill #D8E8D0

CONNECTIONS:
- Sequential solid black arrows (2-3 px) between adjacent nodes, all pointing right.
- Each arrow optionally labeled with a short verb in italic gray (max 3 words), e.g., "remove outliers", "scale to [0,1]".

TEXT:
- Title at top center, bold Arial: "{图标题}"
- Node labels: bold Arial, ≤ 3 words each
- Arrow labels: italic gray, ≤ 3 words each

STYLE: flat vector illustration, NeurIPS/ICML figure aesthetic, Arial sans-serif throughout, pastel palette, pure white background. Aspect ratio 16:9.

Negative constraints: NO photorealistic photos, NO 3D shading, NO drop shadows, NO cartoon style, NO emoji, NO unreadable text, NO crossing arrows, NO bidirectional arrows (unidirectional flow only), NO chart junk.

# 填空示例
A linear flowchart for an academic paper on data preprocessing.

LAYOUT: Horizontal flow from left to right, five nodes arranged in a single row with equal spacing.

NODES:
- Start: rounded oval with thick border, label "Raw Data", soft blue fill #D6E4F0
- Step 1: rounded rectangle, label "Cleaning", soft gray fill #E5E7EB
- Step 2: rounded rectangle, label "Normalization", soft gray fill #E5E7EB
- Step 3: rounded rectangle, label "Feature Selection", soft gray fill #E5E7EB
- End: rounded oval with thick border, label "Ready Dataset", soft green fill #D8E8D0

CONNECTIONS:
- Sequential solid black arrows (2-3 px) between adjacent nodes, all pointing right.
- Each arrow labeled in italic gray (max 3 words): "remove outliers" → "scale to [0,1]" → "select top-k features".

TEXT:
- Title at top center, bold Arial: "Data Preprocessing Pipeline"
- Node labels: bold Arial, ≤ 3 words each
- Arrow labels: italic gray, ≤ 3 words each

STYLE: flat vector illustration, NeurIPS/ICML figure aesthetic, Arial sans-serif throughout, pastel palette, pure white background. Aspect ratio 16:9.

Negative constraints: NO photorealistic photos, NO 3D shading, NO drop shadows, NO cartoon style, NO emoji, NO unreadable text, NO crossing arrows, NO bidirectional arrows (unidirectional flow only), NO chart junk.

评论 0

更多

登录后可点赞、收藏、评论和举报。

还没有评论,先发起一个具体问题。

0/2000