Datasets:
id stringlengths 11 11 | diagram_id stringdate 0001-01-01 00:00:00 6845-01-01 00:00:00 | image imagewidth (px) 35 6.33k | instruction stringlengths 358 17.6k | code stringlengths 156 16.8k | reference_image imagewidth (px) 35 8.19k | domain stringclasses 6
values |
|---|---|---|---|---|---|---|
0505_d2ce_0 | 0505 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert the line chart to a scatter plot by removing the lines connecting the data markers while maintaining the existing color and marker cycling patterns for all 12 series... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Cycle 2 marks between successive plots, then colors},
cycle multi list={
color list\nextlist
[2 of]mark list
},
... | charts | ||
0505_d2ce_1 | 0505 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the chart title text from 'Cycle 2 marks between successive plots, then colors' to 'Marker and Color Cycle Evaluation'.
Your output must be the full, compilable code... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Marker and Color Cycle Evaluation},
cycle multi list={
color list\nextlist
[2 of]mark list
},
samples=3,
... | charts | ||
6198_d2ce_0 | 6198 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert the current hexagonal cycle layout into a linear vertical layout where the nodes are connected in sequence from 6 at the top to 1 at the bottom.
Your output must be... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz,color}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}[scale=0.65]
\node [draw, circle] (1) at (0,0) {$1$};
\node [draw, circle] (2) at (0,1.5) {$2$};
\node [draw, circle] (3) at (0,3... | graph_structures | ||
6198_d2ce_1 | 6198 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the shape of node 6 from a circle to a rectangle.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz,color}
\usetikzlibrary{shapes.misc}
\begin{document}
\begin{tikzpicture}[scale=0.65]
\node [draw, circle] (1) at (-1.35,0) {$1$};
\node [draw, circle] (2) at (1.35,0) {$2$};
\node [draw, circle] (3) at... | graph_structures | ||
5630_d2ce_0 | 5630 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Change the fill color of the state nodes g0 and g1 from pink to light blue.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
\use... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
% 'arrows' is required for the 'stealth'' arrow tip
% 'automata' is required for 'state', 'initial', and 'loop' styles
\usetikzlibrary{arrows, automata}
\begin{document}
\begin{tikzpicture}[->, >=stealth', shorten >=1pt, auto, node distance=5.5cm, semit... | graph_structures | ||
5630_d2ce_1 | 5630 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Convert the current horizontal state machine layout into a vertical layout by positioning node g1 below node g0 while maintaining all existing transiti... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
% 'arrows' is required for the 'stealth'' arrow tip
% 'automata' is required for 'state', 'initial', and 'loop' styles
\usetikzlibrary{arrows, automata}
\begin{document}
\begin{tikzpicture}[->, >=stealth', shorten >=1pt, auto, node distance=5.5cm, semit... | graph_structures | ||
2313_d2ce_0 | 2313 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Filter the data to only show the state node with the output 00.
# Original Code
```latex
\documentclass[border=5pt]{standalone}
% Essential TikZ pack... | \documentclass[border=5pt]{standalone}
% Essential TikZ package and libraries for automata with multiple parts
\usepackage{tikz}
\usetikzlibrary{automata, shapes.multipart}
\begin{document}
\begin{tikzpicture}[state/.style=state with output]
\node[state] at (2,0) {$q_1$ \nodepart{lower} $00$};
\end{tikzpictur... | graph_structures | ||
2313_d2ce_1 | 2313 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Swap the positions of node q0 and node q1.
# Original Code
```latex
\documentclass[border=5pt]{standalone}
% Essential TikZ package and libraries for... | \documentclass[border=5pt]{standalone}
% Essential TikZ package and libraries for automata with multiple parts
\usepackage{tikz}
\usetikzlibrary{automata, shapes.multipart}
\begin{document}
\begin{tikzpicture}[state/.style=state with output]
\node[state] {$q_1$ \nodepart{lower} $00$};
\node[state] ... | graph_structures | ||
4797_d2ce_0 | 4797 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add a dashed black horizontal line at y=2.5 to the diagram as a reference threshold.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalo... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.8]
\draw[gray!50, step=1] (0,0) grid (8,6);
\draw[thick, ->] (0,0) -- (8,0) node[below] {$Time$};
\draw[thick, ->] (0,0) -- ... | charts | ||
4797_d2ce_1 | 4797 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Rename the label 'Time' to 'Step Number'.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.8]
\draw[gray!50, step=1] (0,0) grid (8,6);
\draw[thick, ->] (0,0) -- (8,0) node[below] {Step Number};
\draw[thick, ->] (0,0... | charts | ||
0087_d2ce_0 | 0087 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add a dashed red circular reference line at the radial distance of 0.5 to the diagram.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standa... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
% Required pgfplots library for polaraxis
\usepgfplotslibrary{polar}
\begin{document}
\begin{tikzpicture}
\begin{polaraxis}[
ymin=0.3,
]
\addplot coordinates {
(0,1) (90,1) (180,1... | charts | ||
0087_d2ce_1 | 0087 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Change the data value at the 180-degree position from (180, 1) to (180, 0.8).
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
% ... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
% Required pgfplots library for polaraxis
\usepgfplotslibrary{polar}
\begin{document}
\begin{tikzpicture}
\begin{polaraxis}[
ymin=0.3,
]
\addplot coordinates {
(0,1) (90,1) (180,0... | charts | ||
2913_d2ce_0 | 2913 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a small red circle at the barycentric center of the triangle to the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet b... | \documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate (content) at (90:3cm);
\coordinate (structure) at (210:3cm);
\coordinate (form) at (-30:3cm);
\node [above] at (content) {content oriented};
\node [below left] at (structure)... | planar_geometry | ||
2913_d2ce_1 | 2913 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Rename the label 'form oriented' to 'presentation oriented'.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with ... | \documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate (content) at (90:3cm);
\coordinate (structure) at (210:3cm);
\coordinate (form) at (-30:3cm);
\node [above] at (content) {content oriented};
\node [below left] at (structure)... | planar_geometry | ||
0507_d2ce_0 | 0507 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Filter the data to only show the first six plot lines, corresponding to legend indices 0 through 5.
# Original Code
```latex
\documentclass[tikz,borde... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Same index of each input list},
cycle multiindex list={
[3 of]mark list\nextlist
blue,red\nextlist
linestyles\nextli... | charts | ||
0507_d2ce_1 | 0507 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Change the chart title text from 'Same index of each input list' to 'Shifted Linear Series Visualization'.
# Original Code
```latex
\documentclass[tik... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Shifted Linear Series Visualization},
cycle multiindex list={
[3 of]mark list\nextlist
blue,red\nextlist
linestyles\... | charts | ||
1602_d2ce_0 | 1602 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Filter the diagram to only show the electrical circuit components by removing the mechanical output shaft arrow and its label $\omega$.
Your output must be the full, compil... | \documentclass[border=5pt]{standalone}
% circuitikz package
\usepackage[siunitx, RPvoltages]{circuitikz}
% TikZ libraries
\usetikzlibrary{
arrows.meta,
}
\begin{document}
\begin{circuitikz}
\draw (2,0) node[elmech](motor){M};
\draw (motor.north) |-(0,2) to [R] ++(0,-2) to[dcvsource]++(0,-2) -| (motor.botto... | circuit_diagrams | ||
1602_d2ce_1 | 1602 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Move the label $\omega$ from above the output arrow to below it.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start w... | \documentclass[border=5pt]{standalone}
% circuitikz package
\usepackage[siunitx, RPvoltages]{circuitikz}
% TikZ libraries
\usetikzlibrary{
arrows.meta,
}
\begin{document}
\begin{circuitikz}
\draw (2,0) node[elmech](motor){M};
\draw (motor.north) |-(0,2) to [R] ++(0,-2) to[dcvsource]++(0,-2) -| (motor.botto... | circuit_diagrams | ||
4846_d2ce_0 | 4846 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add a blue dashed circle that circumscribes the main lightgray triangle to the diagram.
# Original Code
```latex
\documentclass[tikz,border=5pt]{stand... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=2]
% Main filled triangle
\draw[fill=lightgray] (0,0) -- (1,1.732) -- (2,0) -- (0,0);
% Added blue dashed circle that circumscribes the triangle
\draw[color=blue, dashed] (1,0.577) circle (1.15... | planar_geometry | ||
4846_d2ce_1 | 4846 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Delete the red vertical line and its associated text.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=2]
% 绘制填充的三角形背景
\draw[fill=lightgray] (0,0) -- (1,1.732) -- (2,0) -- (0,0);
% 绘制内部辅助线
\draw (0,0) -- (1.5,0.866);
\draw (2,0) -- (0.5,0.866);
\draw (1.5,0.866) -- (0.5,0.866);
% 占位符(保持原有的间距)
\node at (-0.2,-0.2) {... | planar_geometry | ||
0982_d2ce_0 | 0982 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the fill color of the orthic triangle H_A H_B H_C to light blue.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tkz-euclide}
\usetikzlibrary{calc,patterns,patterns.meta,arrows.meta,decorations.pathreplacing,decorations.markings,backgrounds,shapes.geometric,positioning,intersections,through,angles,quotes}
... | planar_geometry | ||
0982_d2ce_1 | 0982 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add the circumscribed circle of triangle ABC to the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with ... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tkz-euclide}
\usetikzlibrary{calc,patterns,patterns.meta,arrows.meta,decorations.pathreplacing,decorations.markings,backgrounds,shapes.geometric,positioning,intersections,through,angles,quotes}
... | planar_geometry | ||
5750_d2ce_0 | 5750 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a vertical diameter passing through the center point O to the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{lmodern,tikz}
\begin{document}
\begin{tikzpicture}[scale=.3]
\draw(0,0)circle(4.01cm);
\draw(-1,3.87)--(-2.83,-2.83);
\draw(4.01,0)--(-4.01,0);
\draw(0,4.01)--(0,-4.01);
\draw[dash pattern=on 5pt off 5pt](-4.01,0)--(-1,3.87);
\draw[dash... | planar_geometry | ||
5750_d2ce_1 | 5750 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Remove the dashed line segment connecting point z and point x^* from the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet ... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{lmodern,tikz}
\begin{document}
\begin{tikzpicture}[scale=.3]
\draw(0,0)circle(4.01cm);
\draw(-1,3.87)--(-2.83,-2.83);
\draw(4.01,0)--(-4.01,0);
\draw[dash pattern=on 5pt off 5pt](4.01,0)--(-2.83,-2.83);
\fill(-1,3.87)circle(2pt)node[blue,ab... | planar_geometry | ||
0927_d2ce_0 | 0927 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add the circumscribed circle of triangle ABC to the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with ... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\providecolor{teal}{rgb}{0.0, 0.5, 0.5}\tkzSetUpLine[line width=.2pt,color=teal]\tikzset{every picture/.style={line width=.2pt}
,line style/.style={line width=.2pt},label style/.append style={below,color=teal,font=\scriptsize}}
\begin{document}
\be... | planar_geometry | ||
0927_d2ce_1 | 0927 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Rename the label 'A' to 'P'.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this:**
```latex
\documentclass... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\providecolor{teal}{rgb}{0.0, 0.5, 0.5}\tkzSetUpLine[line width=.2pt,color=teal]\tikzset{every picture/.style={line width=.2pt}
,line style/.style={line width=.2pt},label style/.append style={below,color=teal,font=\scriptsize}}
\begin{document}
\be... | planar_geometry | ||
2945_d2ce_0 | 2945 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add a red dashed line segment connecting the coordinates (0,2) and (3,0) to the diagram.
# Original Code
```latex
\documentclass[border=5pt]{standalon... | \documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{calc}
\tikzset{
help lines/.style={gray,very thin},
>=stealth
}
\begin{document}
\begin{tikzpicture}
\draw [help lines] (0,0) grid (3,2);
\coordinate (a) at (1... | planar_geometry | ||
2945_d2ce_1 | 2945 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Rename the label '1cm' to 'Distance'.
# Original Code
```latex
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inpu... | \documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{calc}
\tikzset{
help lines/.style={gray,very thin},
>=stealth
}
\begin{document}
\begin{tikzpicture}
\draw [help lines] (0,0) grid (3,2);
\coordinate (a) at (1... | planar_geometry | ||
5581_d2ce_0 | 5581 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Convert the current open V-shaped graph into a closed triangular graph by adding an edge between the two nodes on the right.
# Original Code
```latex
... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsfonts,amsmath,amssymb}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.5]
\path (-2,0) node(x1) {\tiny$\bullet$} ;
\path (-1,1) node(x2) {\tiny$\bullet$};
\path (-1,-1) node(x3) {\tiny$\bullet$};
... | graph_structures | ||
5581_d2ce_1 | 5581 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Rotate the entire diagram by 90 degrees clockwise.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsfonts,amsmath,a... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsfonts,amsmath,amssymb}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.5, rotate=-90]
\path (-2,0) node(x1) {\tiny$\bullet$} ;
\path (-1,1) node(x2) {\tiny$\bullet$};
\path (-1,-1) node(x3) {\tiny$\bu... | graph_structures | ||
2150_d2ce_0 | 2150 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Convert this scatter plot to a line chart while preserving all data values.
# Original Code
```latex
\documentclass[border=5pt]{standalone}
% Base pa... | \documentclass[border=5pt]{standalone}
% Base packages for font rendering consistency
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% TikZ and required libraries for the specific chart
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
plotmarks % Required for scatter plot symbols
}
\b... | charts | ||
2150_d2ce_1 | 2150 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Change the X axis range from 18–33 to 10–40.
# Original Code
```latex
\documentclass[border=5pt]{standalone}
% Base packages for font rendering consi... | \documentclass[border=5pt]{standalone}
% Base packages for font rendering consistency
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% TikZ and required libraries for the specific chart
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
plotmarks % Required for scatter plot symbols
}
\b... | charts | ||
4540_d2ce_0 | 4540 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a black dashed horizontal line at the y-axis value of 20 to the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=8cm,compat=1.9}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage[colorinlistoftodos]{todonotes}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xlabel={Road segment length (m)},ylabel... | charts | ||
4540_d2ce_1 | 4540 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the data value at the third data point of the Benchmark System from (150, 18.73) to (150, 22.00).
Your output must be the full, compilable code, starting exactly wit... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=8cm,compat=1.9}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage[colorinlistoftodos]{todonotes}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xlabel={Road segment length (m)},ylabel... | charts | ||
4679_d2ce_0 | 4679 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert this star-shaped branching graph structure into a vertical linear sequence where the nodes are connected one after another from top to bottom.
Your output must be t... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{graphicx, amssymb, latexsym, amsfonts, amsmath, lscape, amscd, multirow, multicol, amsthm, color, epsfig, mathrsfs, tikz, enumerate, soul, subcaption, scrextend, todonotes, xstring, hyperref, comment}
\usetikzlibrary{calc}
\begin{docume... | graph_structures | ||
4679_d2ce_1 | 4679 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Move the leftmost black node from its current position at (0,0) to (2.5, 0) so that it is vertically aligned with the other two black nodes.
Your output must be the full, c... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{graphicx, amssymb, latexsym, amsfonts, amsmath, lscape, amscd, multirow, multicol, amsthm, color, epsfig, mathrsfs, tikz, enumerate, soul, subcaption, scrextend, todonotes, xstring, hyperref, comment}
\usetikzlibrary{calc}
\begin{docume... | graph_structures | ||
5622_d2ce_0 | 5622 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert the current grid-like graph layout into a circular layout while maintaining all node labels and their connectivity.
Your output must be the full, compilable code, s... | \documentclass[11pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\filldraw (150:1.5) circle (2pt);
\node [above left] at (150:1.5) {$1$};
\filldraw (90:1.5) circle (2pt);
\node [above] at (90:1.5) {$2$};
\filldraw (30:1.5) circle (2pt);
\node [above right] at (30:1.5) ... | graph_structures | ||
5622_d2ce_1 | 5622 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Remove the edge connecting node '2' and node '6' from the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start... | \documentclass[11pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\filldraw (-1,1) circle (2pt);
\node [above left] at (-1,1) {$1$};
\filldraw (0,1) circle (2pt);
\node [above] at (0,1) {$2$};
\filldraw (1,1) circle (2pt);
\node [above right] at (1,1) {$3$};
\filldr... | graph_structures | ||
2915_d2ce_0 | 2915 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert the current horizontal fan layout to a vertical layout where the paths originate from the bottom of the 'start' node and converge at a point 2.5 units directly below... | \documentclass[border=5pt]{standalone}
% Essential TikZ package
\usepackage{tikz}
% Required TikZ library for the 'ellipse' shape
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
% Node 'start' uses the 'ellipse' shape from shapes.geometric
\node (start) [draw,shape=ellipse] {start};
... | graph_structures | ||
2915_d2ce_1 | 2915 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the shape of node 'start' from ellipse to rectangle.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with t... | \documentclass[border=5pt]{standalone}
% Essential TikZ package
\usepackage{tikz}
% Required TikZ library for the 'ellipse' shape
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
% Node 'start' uses the 'ellipse' shape from shapes.geometric
\node (start) [draw,shape=rectangle] {start}... | graph_structures | ||
1755_d2ce_0 | 1755 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert the single resistor circuit into a parallel RC circuit, placing a resistor and a capacitor in parallel between the two nodes.
Your output must be the full, compilab... | \documentclass[border=5pt]{standalone}
% Base font settings - preserved for rendering consistency
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% circuitikz package with utilized options
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
% Parallel RC c... | circuit_diagrams | ||
1755_d2ce_1 | 1755 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Replace the resistor with an inductor.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this:**
```latex
\doc... | \documentclass[border=5pt]{standalone}
% Base font settings - preserved for rendering consistency
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% circuitikz package with utilized options
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
% Simple induct... | circuit_diagrams | ||
4082_d2ce_0 | 4082 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a red dashed horizontal line at y=10 to the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this... | \documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=0,xmax=19.5,ymin=0,ymax=19.5,axis equal image,axis lines=left]\draw [red,thick] (0,5) -- (10,0);
\draw [green] (axis cs:0,5) -- (axis cs:10,0);
\draw [red, dashed] (axis cs:0,10) -- (ax... | charts | ||
4082_d2ce_1 | 4082 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the Y axis range from 0–19.5 to 0–10.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this:**
```late... | \documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=0,xmax=19.5,ymin=0,ymax=10,axis equal image,axis lines=left]\draw [red,thick] (0,5) -- (10,0);
\draw [green] (axis cs:0,5) -- (axis cs:10,0);
\end{axis}
\end{tikzpicture}
\end{document} | charts | ||
6433_d2ce_0 | 6433 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Filter the graph to only show the four diamond units and their linear horizontal connections, removing the long curved edge at the bottom that links th... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=.8,style=thick,x=1cm,y=1cm]
\def\vr{3.5pt}
% Define vertices for the diamond-necklace
\path (-.5, 0.0) coordinate (d11);
\path (0.5, 1.0) coordinate (d12);
\path (1.5, 0.0) ... | graph_structures | ||
6433_d2ce_1 | 6433 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Remove the four internal vertical edges that bisect each of the diamond units.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
\... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=.8,style=thick,x=1cm,y=1cm]
\def\vr{3.5pt}
% Define vertices for the diamond-necklace
\path (-.5, 0.0) coordinate (d11);
\path (0.5, 1.0) coordinate (d12);
\path (1.5, 0.0) ... | graph_structures | ||
5190_d2ce_0 | 5190 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a dashed red vertical line connecting the two blue segments at x=0, starting from (0,0) and ending at (0,1).
Your output must be the full, compilable code, starting exa... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage[latin2]{inputenc}
\usepackage{tikz-cd}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis x line=middle, axis y line=middle, ymin=-1, ymax=1, ytick={-1,...,1}, ylabel=... | charts | ||
5190_d2ce_1 | 5190 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Rename the x-axis label from '$x$' to '$t$' and the y-axis label from '$y$' to '$f(t)$'.
Your output must be the full, compilable code, starting exactly with the provided s... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage[latin2]{inputenc}
\usepackage{tikz-cd}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis x line=middle, axis y line=middle, ymin=-1, ymax=1, ytick={-1,...,1}, ylabel=... | charts | ||
0517_d2ce_0 | 0517 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the colormap of the surface plot from RdPu-6 to the YlGn-6 colormap.
Your output must be the full, compilable code, starting exactly with the provided snippet below.... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
colorbrewer
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
colormap access=piecewise constant,
colormap/YlGn-6,
colorbar horizontal,
]
\addplot3 [
surf,
... | 3d_shapes | ||
0517_d2ce_1 | 0517 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Remove the horizontal colorbar from the bottom of the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start wit... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
colorbrewer
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
colormap access=piecewise constant,
colormap/RdPu-6,
]
\addplot3 [
surf,
shader=interp,
] {... | 3d_shapes | ||
4878_d2ce_0 | 4878 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Filter the diagram to only show graph (b) G_2, removing graphs (a) G_1 and (c) G_3 along with their associated nodes, edges, and labels.
Your output must be the full, compi... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,tikz}
\begin{document}
\begin{tikzpicture}[scale=.85, thick, x=0.85cm, y=0.85cm]
\def\vr{2.25pt}
% --- Graph G2 ---
\path (7,0) coordinate (u1);
\path (7,1) coordinate (v1);
\path (8,0) coordinate (u2);
\path (8,1) coordina... | graph_structures | ||
4878_d2ce_1 | 4878 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Remove the curved edge labeled 'e' that connects the top central node to the bottom rightmost node in graph (c) G_3.
Your output must be the full, compilable code, starting... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,tikz}
\begin{document}
\begin{tikzpicture}[scale=.85, thick, x=0.85cm, y=0.85cm]
\def\vr{2.25pt}
% --- Graph G1 ---
\path (0,0) coordinate (u1);
\path (0,1) coordinate (v1);
\path (1,0) coordinate (u2);
\path (1,1) coordina... | graph_structures | ||
4051_d2ce_0 | 4051 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Convert this bar chart to a line chart while preserving the error bars for all four data series.
# Original Code
```latex
\documentclass[border=5pt]{s... | \documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{patterns}
\pgfplotsset{compat=1.3}
\begin{document}
\begin{tikzpicture}[scale=.5, transform shape]
\begin{axis}[
ymin=95,
ylabel={xxx (\%)},
major tick length=0pt,
ytick style={/pgfplots/major tick length=1.5mm},... | charts | ||
4051_d2ce_1 | 4051 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Rename the x-axis label 'yy' to 'Batch B'.
# Original Code
```latex
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{patte... | \documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{patterns}
\pgfplotsset{compat=1.3}
\begin{document}
\begin{tikzpicture}[scale=.5, transform shape]
\begin{axis}[
ymin=95,
ylabel={xxx (\%)},
ybar=2*\pgflinewidth,
bar width=7pt,
major tick length=0pt,
... | charts | ||
5401_d2ce_0 | 5401 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Convert this grouped bar chart into a line chart, where SC, TSO, and PSO are represented as distinct lines instead of bars.
# Original Code
```latex
\... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\scriptsize
\begin{axis}[
height=4.5cm,
width=9.5cm,
axis lines*=left,
ymode=log,
symbolic x coords={Prove, Prove-GP, Bug 1, Bug 2, Bug 3, Bug 4, Bug ... | charts | ||
5401_d2ce_1 | 5401 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Move the legend from the top-left (north west) corner to the top-right (north east) corner of the plot.
# Original Code
```latex
\documentclass[tikz,b... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\scriptsize
\begin{axis}[
ybar,
bar width=0.15cm,
height=4.5cm,
width=9.5cm,
axis lines*=left,
ymode=log,
symbolic x coords={Prove, Prove-... | charts | ||
6177_d2ce_0 | 6177 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert this square-shaped graph layout to a circular layout while maintaining the connections between the four nodes.
Your output must be the full, compilable code, starti... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{tikz}
\usepackage{tikz-cd}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\filldraw[white] (90:1.3) circle (2pt);
... | graph_structures | ||
6177_d2ce_1 | 6177 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Remove the two diagonal violet edges from the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this:*... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{tikz}
\usepackage{tikz-cd}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\filldraw[white] (0,1.3) circle (2pt);
... | graph_structures | ||
6418_d2ce_0 | 6418 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Filter the diagram to only show the blue and red edges, removing all cyan and green edges and their corresponding paths from the graph.
# Original Cod... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[node distance={15mm}, thick, main/.style = {draw, circle}]
\node[main, fill=black] (0) at (0,4) {};
\node at (-1,4) {$u$};
\node[main, fill=black] (1) at (1,0) {};
\node[... | graph_structures | ||
6418_d2ce_1 | 6418 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Remove the straight green dotted edge that connects the node at coordinates (1,0) to the node at coordinates (5,0).
# Original Code
```latex
\document... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[node distance={15mm}, thick, main/.style = {draw, circle}]
\node[main, fill=black] (0) at (0,4) {};
\node at (-1,4) {$u$};
\node[main, fill=black] (1) at (1,0) {};
\node[... | graph_structures | ||
5628_d2ce_0 | 5628 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert this bar chart into a line chart while preserving all data values and category labels.
Your output must be the full, compilable code, starting exactly with the prov... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[width=5cm, height=3cm, ymin=0, ymajorgrids, xtick={0,1,2}, xticklabels={Distilbert, Albert, Roberta}, ylabel={Time (minutes)}]
\addplot coordinates {(0,13) (1,17) (2,25)};
\end{axis}
... | charts | ||
5628_d2ce_1 | 5628 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Move the legend from the outer north east position to the south position below the chart.
Your output must be the full, compilable code, starting exactly with the provided ... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[legend entries={Distilbert, Albert, Roberta}, legend style={at={(0.5,-0.25)}, anchor=north}, width=5cm, height=3cm, ybar=0pt, ymin=0, ymajorgrids, xtick=\empty, ylabel={Time (minutes)}]
\ad... | charts | ||
2143_d2ce_0 | 2143 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a dashed red vertical line at x=5000 to serve as a reference in the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet b... | \documentclass[border=5pt]{standalone}
% Base packages for visual consistency
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% TikZ package
\usepackage{tikz}
% Required TikZ libraries for datavisualization and function parsing
\usetikzlibrary{
datavisualization,
datavisualization.formats.f... | charts | ||
2143_d2ce_1 | 2143 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the data value function from x = y*y to x = 0.5*y*y.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with t... | \documentclass[border=5pt]{standalone}
% Base packages for visual consistency
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
% TikZ package
\usepackage{tikz}
% Required TikZ libraries for datavisualization and function parsing
\usetikzlibrary{
datavisualization,
datavisualization.formats.f... | charts | ||
0552_d2ce_0 | 0552 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the text color of the y-axis label 'The y-axis' to blue.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start wi... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[footnotesize,title=A ``footnotesize'' figure,xlabel=The $x$-axis,ylabel={\color{blue}The $y$-axis},minor tick num=1,legend entries={Leg}]\addplot+[const plot]coordinates{(... | charts | ||
0552_d2ce_1 | 0552 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Convert this const plot into a scatter plot while preserving all original data coordinates.
Your output must be the full, compilable code, starting exactly with the provide... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[footnotesize,title=A ``footnotesize'' figure,xlabel=The $x$-axis,ylabel=The $y$-axis,minor tick num=1,legend entries={Leg}]\addplot+[only marks]coordinates{(0,0)(1,1)(3,3)... | charts | ||
5665_d2ce_0 | 5665 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add a small red circle at the center of the dashed ellipse to the diagram.
# Original Code
```latex
\documentclass{standalone}
\usepackage{amssymb}
\u... | \documentclass{standalone}
\usepackage{amssymb}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw [blue] (1,0) -- node[pos=0.5, below=1mm] {$\mathbb{R}\tilde\times L\cap \mathbb{C}\times W^{int}$} (6,0);
\draw[dashed] (4.5,0) ellipse (2.5 and 1.5);
\fill[red] (4.5,0) circle (2pt);
\end{tikz... | planar_geometry | ||
3532_d2ce_0 | 3532 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a red dashed line segment from the origin (0,0) to the point on the circle at the 30-degree angle position.
Your output must be the full, compilable code, starting exac... | \documentclass[border=5pt]{standalone}
\usepackage{tikz}
% Required for the specific arrow tip style used in the \draw[->] commands
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}[scale=3]
\clip (-0.1,-0.2) rectangle (1.1,1.51);
% Grid construction using explicit styles
\draw[step=.5cm,gray,v... | planar_geometry | ||
3532_d2ce_1 | 3532 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Remove the gray background grid from the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this:**
``... | \documentclass[border=5pt]{standalone}
\usepackage{tikz}
% Required for the specific arrow tip style used in the \draw[->] commands
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}[scale=3]
\clip (-0.1,-0.2) rectangle (1.1,1.51);
% Sector/Angle fill
\filldraw[fill=green!20,draw=green!50!black]... | planar_geometry | ||
0814_d2ce_0 | 0814 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add the perpendicular bisector of segment AB to the diagram.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{tkz-euclide}
\usetikzlibrary{calc,patterns,patterns.meta,arrows.meta,decorations.pathreplacing,decorations.markings,backgrounds,shapes.geometric,positioning,intersections,through,angles,quotes}
\tikzset{every picture/.style={line width... | planar_geometry | ||
0814_d2ce_1 | 0814 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Move vertex A to the coordinates (1, 1).
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{tkz-euclide}
\usetikzlibrary{calc,patterns,patterns.meta,arrows.meta,decorations.pathreplacing,decorations.markings,backgrounds,shapes.geometric,positioning,intersections,through,angles,quotes}
\tikzset{every picture/.style={line width... | planar_geometry | ||
2951_d2ce_0 | 2951 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Change the fill color of the shape from blue!20 to orange!40.
# Original Code
```latex
\documentclass[border=5pt]{standalone}
% TikZ package (essenti... | \documentclass[border=5pt]{standalone}
% TikZ package (essential for drawing)
\usepackage{tikz}
\begin{document}
\tikz \fill
[fill=orange!40,draw=blue,thick] (0,0) -- (2,1) arc (90:-90:.5) -- cycle;
\end{document} | planar_geometry | ||
2951_d2ce_1 | 2951 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add a red dashed vertical line from the point (2,1) to (2,0) to serve as a height reference.
# Original Code
```latex
\documentclass[border=5pt]{stand... | \documentclass[border=5pt]{standalone}
% TikZ package (essential for drawing)
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill [fill=blue!20,draw=blue,thick] (0,0) -- (2,1) arc (90:-90:.5) -- cycle;
\draw [red, dashed] (2,1) -- (2,0);
\end{tikzpicture}
\end{document} | planar_geometry | ||
3718_d2ce_0 | 3718 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a dashed black horizontal line at y=3 to the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with thi... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}\foreach \x/\y/\a/\b/\m in {1/1/0/6/*, 2/2/6/0/otimes*, 3/1/0/0/square*, 4/5/6/6/diamond*} {\edef\temp{\noexpand\addplot[scatter,point meta=\a,visualization depends on={value \m \noexpand\as \noexpa... | charts | ||
3718_d2ce_1 | 3718 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the data value at the fourth data point (the diamond) from (4, 5) to (4, 3).
Your output must be the full, compilable code, starting exactly with the provided snippe... | \documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}\foreach \x/\y/\a/\b/\m in {1/1/0/6/*, 2/2/6/0/otimes*, 3/1/0/0/square*, 4/3/6/6/diamond*} {\edef\temp{\noexpand\addplot[scatter,point meta=\a,visualization depends on={value \m \noexpand\as \noexpa... | charts | ||
0204_d2ce_0 | 0204 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Change the fill color of the blue square markers to green.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
% Base packages
\usep... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
% Low-Level scatter plot interface:
% 0% -- 30% : blue squares
% 30% -- 60% : orange triangles
% 60% -- 100% : red pentagons
... | charts | ||
0204_d2ce_1 | 0204 | # Task: Diagram Editing
You are given a LaTeX code snippet that generates a diagram. Your task is to modify the code according to the given instruction.
# Instruction
Add a dashed black horizontal line at y=0 to the diagram.
# Original Code
```latex
\documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepa... | \documentclass[tikz,border=5pt]{standalone}
% Base packages
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
% Low-Level scatter plot interface:
% 0% -- 30% : blue squares
% 30% -- 60% : orange triangles
% 60% -- 100% : red pentagons
... | charts | ||
3526_d2ce_0 | 3526 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Add a text label '$ heta$' inside the green angle sector at approximately coordinates (0.15, 0.05).
Your output must be the full, compilable code, starting exactly with the... | \documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}[scale=3,>=stealth]
\clip(-.1,-.2)rectangle(1.1,1.51);
\draw[step=.5,gray,very thin](-1.4,-1.4)grid(1.4,1.4);
\draw[->](-1.5,0)--(1.5,0);
\draw[->](0,-1.5)--(0,1.5);
\draw(... | planar_geometry | ||
3526_d2ce_1 | 3526 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Remove the gray coordinate grid from the background of the diagram.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Star... | \documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}[scale=3,>=stealth]
\clip(-.1,-.2)rectangle(1.1,1.51);
\draw[->](-1.5,0)--(1.5,0);
\draw[->](0,-1.5)--(0,1.5);
\draw(0,0)circle(1);
\filldraw[fill=green!20,draw=green!50!b... | planar_geometry | ||
5351_d2ce_0 | 5351 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Change the stroke color of node q_> to red.
Your output must be the full, compilable code, starting exactly with the provided snippet below.
**Start with this:**
```latex... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,semithick,state/.style={circle, draw, minimum size=.9cm}]
\n... | graph_structures | ||
5351_d2ce_1 | 5351 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Filter the diagram to only show the nodes on the main horizontal axis (q_<, q_1, q_2, q_3, q_4, ..., q_n, q_>), removing the auxiliary nodes hat{q_2} and hat{q_4} and their ... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,semithick,state/.style={circle, draw, minimum size=.9cm}]
\n... | graph_structures | ||
4886_d2ce_0 | 4886 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Filter the diagram to only show the decomposition result by removing the leftmost graph and the transition arrow.
Your output must be the full, compilable code, starting ex... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}[scale = 0.75]
\node[circle, draw, fill = black, inner sep=1pt] at (7.5,0) (node a2) {}; \node at (7.5,-0.3) {\small $a$}; \node at (7.5,0.3) {\small $r$};
\node[ci... | graph_structures | ||
4886_d2ce_1 | 4886 | Convert the diagram in the image into a complete, executable LaTeX code block, applying the following modification:
**Modification Instruction:**
Swap the positions of the labels G_1 and G_2 in the graph on the left side of the arrow.
Your output must be the full, compilable code, starting exactly with the provided s... | \documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}[scale = 0.75]
\node[circle, draw, fill = black, inner sep=1pt] at (0,0) (node a) {}; \node at (0,-0.3) {\small $a$}; \node at (0,0.5) {\small $r_{a}$};
\node[circl... | graph_structures |
Diagram-MMU: A Multi-Modal Benchmark for Scientific Diagrams
ECCV 2026
🏠 Homepage (coming soon) · 💻 Code · 📄 Paper (coming soon)
Diagram-MMU is a benchmark for evaluating Multimodal Large Language Models (MLLMs) on understanding, parsing, and editing scientific diagrams. It contains 3,744 curated diagrams (each with compilable source code) and 18,305 human-validated evaluation instances across six domains (charts, planar_geometry, 3d_shapes, graph_structures, chemistry, circuit_diagrams), over three tasks: diagram-to-code parsing (D2C-P), diagram-to-code editing (D2C-E), and diagram question answering (DQA).
Each config provides two splits: test (full benchmark) and testmini (a class-balanced 50-per-domain subset, 300 diagrams, for quick development). All ground truth is public, so evaluation runs locally with no submission.
| Config | Task | #test | #testmini |
|---|---|---|---|
diagrams |
Canonical per-diagram source | 3,744 | 300 |
d2c-p |
Diagram-to-Code Parsing | 3,739 | 300 |
d2c-e |
Diagram-to-Code Editing | 7,420 | 600 |
dqa |
Diagram Question Answering | 7,146 | 600 |
Data Distribution
Main Results
Usage
from datasets import load_dataset
d2cp = load_dataset("AIGrounding/Diagram-MMU", "d2c-p", split="test") # parsing
dqa = load_dataset("AIGrounding/Diagram-MMU", "dqa", split="testmini") # QA, dev subset
diagrams = load_dataset("AIGrounding/Diagram-MMU", "diagrams", split="test")
ex = d2cp[0]
ex["image"] # PIL.Image (decoded automatically)
ex["code"] # ground-truth source
Evaluation
All ground truth is public, so evaluation runs locally — no submission. The official evaluation code (object / code / image metrics for D2C-P & D2C-E, and the rule-based + LLM-as-judge pipeline for DQA) will be released separately:
- Evaluation repository: github.com/AIGrounding/Diagram-MMU
License & Citation
Released under the Apache License 2.0. Source code is collected from official package handbooks (PGFPlots, CircuiTikZ, TKZ-Euclide, ChemFig, TikZ-Network) and community resources (texample.net, TeX Stack Exchange, GitHub tikz_favorites); upstream sources may carry their own terms. All annotations are original to this work.
@article{bo2026diagrammmu,
title = {Diagram-MMU: A Multi-Modal Benchmark for Scientific Diagrams},
author = {Bo, Weihao and Zhang, Shan and Sun, Yanpeng and Liu, Jie and Yao, Yongke and Du, Jinhao and He, Wei and Zou, Kai and Li, Zechao and Wang, Jingdong},
journal = {arXiv preprint arXiv:TODO},
year = {2026}
}
- Downloads last month
- 82