question_id
int64
0
182
level
stringclasses
3 values
task
stringclasses
2 values
object
stringlengths
1
10
question
stringlengths
19
824
prompt
stringlengths
246
1.16k
100
normal
generation
O
Draw a blue letter O
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
101
normal
generation
P
Draw a purple letter P
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
102
normal
generation
Q
Draw a green letter Q
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
103
normal
generation
R
Draw a red letter R
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
104
normal
generation
S
Draw a purple letter S
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
105
normal
generation
T
Draw a green letter T
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
106
normal
generation
U
Draw a green letter U
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
107
normal
generation
V
Draw an orange letter V
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
108
normal
generation
W
Draw a blue letter W
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
109
normal
generation
X
Draw a purple letter X
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
110
normal
generation
Y
Draw a blue letter Y
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
111
normal
generation
Z
Draw a blue letter Z
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
112
normal
generation
0
Draw a green number 0
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
113
normal
generation
1
Draw a yellow number 1
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
114
normal
generation
2
Draw an orange number 2
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
115
normal
generation
3
Draw a red number 3
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
116
normal
generation
4
Draw an orange number 4
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
117
normal
generation
5
Draw a red number 5
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
118
normal
generation
6
Draw a red number 6
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
119
normal
generation
7
Draw a green number 7
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
120
normal
generation
8
Draw a yellow number 8
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
121
normal
generation
9
Draw a purple number 9
You are a code generation robot. You need to generate runnable Python code based on the drawing requirements provided by the user to create the image the user needs. Requirements: 1. Draw the pattern required by the user in a two-dimensional coordinate system, ensuring that the axes are hidden at the end, and do not u...
122
normal
recognition
A
import matplotlib.pyplot as plt plt.figure(figsize=(6, 4)) plt.xlim(0, 1) plt.ylim(0, 1) plt.plot([0.2, 0.5], [0.2, 0.8], color='purple', linewidth=10) plt.plot([0.8, 0.5], [0.2, 0.8], color='purple', linewidth=10) plt.plot([0.35, 0.65], [0.5, 0.5], color='purple', linewidth=10) plt.axis('off') plt.savefig('./test.jp...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt plt.figure(figsize=(6, 4)) plt.xlim(0, 1) plt.ylim(0, 1) plt.plot([0.2, 0.5], [0.2, 0.8], color='purple', linewidth=10) plt.pl...
123
normal
recognition
B
import matplotlib.pyplot as plt import numpy as np plt.figure() plt.plot([0, 0], [-2, 2], color='yellow', linewidth=2) theta1 = np.linspace(np.pi/2, -np.pi/2, 100) x1 = 1 * np.cos(theta1) + 0 y1 = 1 * np.sin(theta1) + 1 plt.plot(x1, y1, color='yellow', linewidth=2) theta2 = np.linspace(np.pi/2, -np.pi/2, 100) x2 = ...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import numpy as np plt.figure() plt.plot([0, 0], [-2, 2], color='yellow', linewidth=2) theta1 = np.linspace(np.pi/2, -np.pi/2...
124
normal
recognition
C
import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Polygon fig, ax = plt.subplots(figsize=(5, 5)) ax.set_xlim(0, 1) ax.set_ylim(0, 1) ax.axis('off') ax.set_aspect('equal') R = 0.45 r = 0.25 center = (0.5, 0.5) theta = np.linspace(np.radians(45), np.radians(315), 100) theta_inner = np.l...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Polygon fig, ax = plt.subplots(figsize=(5, 5)) ax.set_xlim(0, 1) ax.set_ylim...
125
normal
recognition
D
import matplotlib.pyplot as plt from matplotlib.patches import Arc fig, ax = plt.subplots() ax.plot([0, 0], [0, 10], color='purple', linewidth=8) arc = Arc((0, 5), width=10, height=10, theta1=270, theta2=90, edgecolor='purple', lw=8) ax.add_patch(arc) plt.axis('off') ax.set_xlim(-1, 6) ax.set_ylim(-1, 11) ...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt from matplotlib.patches import Arc fig, ax = plt.subplots() ax.plot([0, 0], [0, 10], color='purple', linewidth=8) arc = Arc((0...
126
normal
recognition
E
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0, 0], [0, 3], [0, 2], [3, 3], [0, 1.5], [1.5, 1.5], [0, 2], [0, 0], color='green', linewidth=5) ax.set_axis_off() ax.set_aspect('equal') plt.margins(0) plt.savefig('./test.jpg', bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0, 0], [0, 3], [0, 2], [3, 3], [0, 1.5], [1.5, 1.5], [0, 2], [0, 0], color='green', linewidt...
127
normal
recognition
F
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0, 0], [0, 3], color='red') ax.plot([0, 2], [3, 3], color='red') ax.plot([0, 1.5], [2, 2], color='red') ax.set_aspect('equal') ax.axis('off') plt.savefig('./test.jpg', bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0, 0], [0, 3], color='red') ax.plot([0, 2], [3, 3], color='red') ax.plot([0, 1.5], [2, 2], c...
128
normal
recognition
G
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() ax.set_xlim(0, 10) ax.set_ylim(0, 10) ax.set_aspect('equal') theta = np.linspace(np.pi/4, 2 * np.pi, 100) x = 5 + 3 * np.cos(theta) y = 5 + 3 * np.sin(theta) ax.plot(x, y, 'g') ax.plot([5, 8], [5, 5], 'g', linewidth=3) ax.axis('off') plt...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() ax.set_xlim(0, 10) ax.set_ylim(0, 10) ax.set_aspect('equal') theta = np.linspace...
129
normal
recognition
H
import matplotlib.pyplot as plt fig = plt.figure(figsize=(3, 5)) plt.plot([0, 0], [0, 10], color='purple', linewidth=10) plt.plot([10, 10], [0, 10], color='purple', linewidth=10) plt.plot([0, 10], [5, 5], color='purple', linewidth=10) plt.xlim(-5, 15) plt.ylim(-5, 15) plt.subplots_adjust(left=0, right=1, top=1, bott...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig = plt.figure(figsize=(3, 5)) plt.plot([0, 0], [0, 10], color='purple', linewidth=10) plt.plot([10, 10], [0, 10], color='pu...
130
normal
recognition
I
import matplotlib.pyplot as plt from matplotlib.patches import Rectangle fig, ax = plt.subplots() ax.add_patch(Rectangle((0.3, 0.15), 0.4, 0.1, facecolor='yellow')) ax.add_patch(Rectangle((0.4, 0.2), 0.2, 0.6, facecolor='yellow')) ax.add_patch(Rectangle((0.3, 0.75), 0.4, 0.1, facecolor='yellow')) ax.set_xlim(0, 1) ax...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt from matplotlib.patches import Rectangle fig, ax = plt.subplots() ax.add_patch(Rectangle((0.3, 0.15), 0.4, 0.1, facecolor='yel...
131
normal
recognition
J
import matplotlib.pyplot as plt import matplotlib.patches as patches fig, ax = plt.subplots() ax.plot([0, 0], [0.7, 0.2], color='purple', lw=8) arc = patches.Arc((-0.1, 0.2), 0.2, 0.2, angle=0, theta1=180, theta2=360, color='purple', lw=8, fill=False) ax.add_patch(arc) plt.xlim(-0.3, 0.3) plt.ylim(0, 0.8) ax.axis('of...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import matplotlib.patches as patches fig, ax = plt.subplots() ax.plot([0, 0], [0.7, 0.2], color='purple', lw=8) arc = patches....
132
normal
recognition
K
import matplotlib.pyplot as plt plt.figure() plt.plot([0, 0], [0, 2], color='purple', linewidth=5) plt.plot([0, 1], [1, 2], color='purple', linewidth=5) plt.plot([0, 1], [1, 0], color='purple', linewidth=5) plt.axis('off') plt.gca().set_aspect('equal', adjustable='box') plt.savefig("./test.jpg", format='jpg') plt.cl...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt plt.figure() plt.plot([0, 0], [0, 2], color='purple', linewidth=5) plt.plot([0, 1], [1, 2], color='purple', linewidth=5) plt.p...
133
normal
recognition
L
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0.2, 0.2], [0.2, 0.8], color='orange', linewidth=14) ax.plot([0.2, 0.5], [0.2, 0.2], color='orange', linewidth=14) ax.axis('off') ax.set_aspect('equal') plt.savefig('./test.jpg', bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0.2, 0.2], [0.2, 0.8], color='orange', linewidth=14) ax.plot([0.2, 0.5], [0.2, 0.2], color='...
134
normal
recognition
M
import matplotlib.pyplot as plt x = [0, 0, 5, 10, 10] y = [0, 10, 5, 10, 0] plt.figure() plt.plot(x, y, color='red', linewidth=2) plt.axis('off') plt.subplots_adjust(left=0, right=1, top=1, bottom=0) plt.savefig('./test.jpg', bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt x = [0, 0, 5, 10, 10] y = [0, 10, 5, 10, 0] plt.figure() plt.plot(x, y, color='red', linewidth=2) plt.axis('off') plt.subplot...
135
normal
recognition
N
import matplotlib.pyplot as plt plt.figure(figsize=(3, 3)) plt.plot([0.2, 0.2], [0.2, 0.8], color='#FFFF00', lw=14) plt.plot([0.8, 0.8], [0.2, 0.8], color='#FFFF00', lw=14) plt.plot([0.2, 0.8], [0.8, 0.2], color='#FFFF00', lw=14) plt.axis('off') plt.xlim(0, 1) plt.ylim(0, 1) plt.savefig('./test.jpg', bbox_inches='tig...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt plt.figure(figsize=(3, 3)) plt.plot([0.2, 0.2], [0.2, 0.8], color='#FFFF00', lw=14) plt.plot([0.8, 0.8], [0.2, 0.8], color='#F...
136
normal
recognition
O
import matplotlib.pyplot as plt from matplotlib.patches import Circle fig, ax = plt.subplots() circle = Circle((0.5, 0.5), 0.4, color='blue', fill=False, lw=10) ax.add_patch(circle) ax.set_aspect('equal') ax.axis('off') plt.savefig('./test.jpg', bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt from matplotlib.patches import Circle fig, ax = plt.subplots() circle = Circle((0.5, 0.5), 0.4, color='blue', fill=False, lw=1...
137
normal
recognition
P
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() ax.plot([0, 0], [0, 6], color='purple', linewidth=4) theta = np.linspace(-np.pi/2, np.pi/2, 100) x = 0 + 1.5 * np.cos(theta) y = 4.5 + 1.5 * np.sin(theta) ax.plot(x, y, color='purple', linewidth=4) ax.set_xlim(-1, 4) ax.set_ylim(-1, 7) ax....
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() ax.plot([0, 0], [0, 6], color='purple', linewidth=4) theta = np.linspace(-np.pi/...
138
normal
recognition
Q
import matplotlib.pyplot as plt import numpy as np theta = np.linspace(0, 2 * np.pi, 100) x_circle = np.cos(theta) y_circle = np.sin(theta) angle = 7 * np.pi / 4 length = 0.5 x_start = np.cos(angle) y_start = np.sin(angle) x_end = x_start + length * np.cos(angle) y_end = y_start + length * np.sin(angle) fig = plt.f...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import numpy as np theta = np.linspace(0, 2 * np.pi, 100) x_circle = np.cos(theta) y_circle = np.sin(theta) angle = 7 * np.pi...
139
normal
recognition
R
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() plt.plot([0.2, 0.2], [0, 2], color='red', linewidth=3) theta = np.linspace(-np.pi/2, np.pi/2, 100) x_curve = 0.2 + 0.6 * np.cos(theta) y_curve = 1.4 + 0.6 * np.sin(theta) plt.plot(x_curve, y_curve, color='red', linewidth=3) x_diag = [0.2, ...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() plt.plot([0.2, 0.2], [0, 2], color='red', linewidth=3) theta = np.linspace(-np.p...
140
normal
recognition
S
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() theta = np.linspace(0, 3*np.pi/2, 100) x_upper = 0 + np.cos(theta) y_upper = 3 + np.sin(theta) plt.plot(x_upper, y_upper, color='purple', linewidth=3) theta = np.linspace(-np.pi, np.pi/2, 100) x_lower = 0 + np.cos(theta) y_lower = 1 + np.si...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() theta = np.linspace(0, 3*np.pi/2, 100) x_upper = 0 + np.cos(theta) y_upper = 3 + ...
141
normal
recognition
T
import matplotlib.pyplot as plt import matplotlib.patches as patches fig = plt.figure() ax = fig.add_subplot(111) ax.axis('off') top_bar = patches.Rectangle((0.3, 0.7), 0.4, 0.1, facecolor='green') vertical_stem = patches.Rectangle((0.45, 0.2), 0.1, 0.5, facecolor='green') ax.add_patch(top_bar) ax.add_patch(vertica...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import matplotlib.patches as patches fig = plt.figure() ax = fig.add_subplot(111) ax.axis('off') top_bar = patches.Rectangle(...
142
normal
recognition
U
import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches vertices = [ (0.3, 0.7), (0.3, 0.3), (0.5, 0.1), (0.7, 0.3), (0.7, 0.7), ] codes = [ Path.MOVETO, Path.LINETO, Path.CURVE3, Path.CURVE3, Path.LINETO, ] path = Path(vertices, ...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches vertices = [ (0.3, 0.7), (0.3, 0.3), (0.5, 0...
143
normal
recognition
V
import matplotlib.pyplot as plt plt.figure() plt.plot([0.2, 0.5], [0.8, 0.2], color='orange', lw=20) plt.plot([0.8, 0.5], [0.8, 0.2], color='orange', lw=20) plt.axis('off') plt.gca().set_aspect('equal') plt.savefig('./test.jpg', bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt plt.figure() plt.plot([0.2, 0.5], [0.8, 0.2], color='orange', lw=20) plt.plot([0.8, 0.5], [0.8, 0.2], color='orange', lw=20) p...
144
normal
recognition
W
import matplotlib.pyplot as plt x = [0, 1, 2, 3, 4] y = [1, 0, 0.5, 0, 1] plt.figure() plt.subplots_adjust(left=0, bottom=0, right=1, top=1, hspace=0, wspace=0) plt.plot(x, y, color='b', linewidth=5) plt.axis('off') plt.savefig('./test.jpg', dpi=100, bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt x = [0, 1, 2, 3, 4] y = [1, 0, 0.5, 0, 1] plt.figure() plt.subplots_adjust(left=0, bottom=0, right=1, top=1, hspace=0, wspace...
145
normal
recognition
X
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0, 1], [0, 1], color='purple', linewidth=4) ax.plot([0, 1], [1, 0], color='purple', linewidth=4) ax.set_aspect('equal') ax.axis('off') plt.savefig('./test.jpg', bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([0, 1], [0, 1], color='purple', linewidth=4) ax.plot([0, 1], [1, 0], color='purple', linewidt...
146
normal
recognition
Y
import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot([0.3, 0.5], [0.9, 0.5], color='blue') ax.plot([0.7, 0.5], [0.9, 0.5], color='blue') ax.plot([0.5, 0.5], [0.5, 0.1], color='blue') ax.set_xlim(0, 1) ax.set_ylim(0, 1) ax.axis('off') plt.savefig('./test.jpg', bbox_inches='tight', pa...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot([0.3, 0.5], [0.9, 0.5], color='blue') ax.plot([0.7, 0.5], [0.9, 0.5], co...
147
normal
recognition
Z
import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches fig, ax = plt.subplots() vertices = [ (0.2, 0.8), (0.8, 0.8), (0.2, 0.2), (0.8, 0.2) ] codes = [ Path.MOVETO, Path.LINETO, Path.LINETO, Path.LINETO ] path = Path(vertices, codes) patch = pat...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches fig, ax = plt.subplots() vertices = [ (0.2, 0.8), (...
148
normal
recognition
0
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') outer_circle = plt.Circle((0, 0), 1, color='green', fill=True) inner_circle = plt.Circle((0, 0), 0.6, color='white', fill=True) ax.add_artist(outer_circle) ax.add_artist(inner_circle) ax.set_xlim(-1.1, 1.1) ax.set_ylim(-...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') outer_circle = plt.Circle((0, 0), 1, color='green', fill=True)...
149
normal
recognition
1
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') ax.plot([0.5, 0.5], [0.2, 0.8], color='#FFFF00', linewidth=8) ax.plot([0.4, 0.5], [0.7, 0.8], color='#FFFF00', linewidth=8) ax.plot([0.4, 0.6], [0.2, 0.2], color='#FFFF00', linewidth=8) ax.set_xlim(0, 1) ax.set_ylim(0, 1)...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') ax.plot([0.5, 0.5], [0.2, 0.8], color='#FFFF00', linewidth=8) ...
150
normal
recognition
2
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') x = [0.1, 0.9, 0.9, 0.1, 0.1, 0.9] y = [0.9, 0.9, 0.5, 0.5, 0.1, 0.1] ax.plot(x, y, color='orange', lw=10, solid_joinstyle='round') plt.xlim(0, 1) plt.ylim(0, 1) plt.savefig("./test.jpg", bbox_inches='tight', pad_inches=...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') x = [0.1, 0.9, 0.9, 0.1, 0.1, 0.9] y = [0.9, 0.9, 0.5, 0.5, 0....
151
normal
recognition
3
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() theta = np.linspace(-np.pi/2, np.pi, 100) x_upper = 0 + np.cos(theta) y_upper = 3 + np.sin(theta) plt.plot(x_upper, y_upper, color='red', linewidth=3) theta = np.linspace(-np.pi, np.pi/2, 100) x_lower = 0 + np.cos(theta) y_lower = 1 + np.sin...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() theta = np.linspace(-np.pi/2, np.pi, 100) x_upper = 0 + np.cos(theta) y_upper = 3 ...
152
normal
recognition
4
import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(6, 4)) ax.plot([0.3, 0.6], [0.5, 0.8], color='orange', linewidth=10) ax.plot([0.3, 0.7], [0.5, 0.5], color='orange', linewidth=10) ax.plot([0.6, 0.6], [0.2, 0.8], color='orange', linewidth=10) ax.set_xlim(0, 1) ax.set_ylim(0, 1) ax.set_aspect('equal') ax...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(6, 4)) ax.plot([0.3, 0.6], [0.5, 0.8], color='orange', linewidth=10) ax.plot([0.3, 0.7], [0.5,...
153
normal
recognition
5
import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') x = [0.9, 0.1, 0.1, 0.9, 0.9, 0.1] y = [0.9, 0.9, 0.5, 0.5, 0.1, 0.1] ax.plot(x, y, color='red', lw=10, solid_joinstyle='round') plt.xlim(0, 1) plt.ylim(0, 1) plt.savefig("./test.jpg", bbox_inches='tight', pad_inches=0) ...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') x = [0.9, 0.1, 0.1, 0.9, 0.9, 0.1] y = [0.9, 0.9, 0.5, 0.5, 0....
154
normal
recognition
6
import matplotlib.pyplot as plt from matplotlib.textpath import TextPath from matplotlib.patches import PathPatch fig, ax = plt.subplots() ax.set_aspect('equal') ax.axis('off') path = TextPath((0, 0), '6', size=40) patch = PathPatch(path, color='red', lw=2) ax.add_patch(patch) plt.xlim(path.get_extent().xmin, path....
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt from matplotlib.textpath import TextPath from matplotlib.patches import PathPatch fig, ax = plt.subplots() ax.set_aspect('equa...
155
normal
recognition
7
import matplotlib.pyplot as plt plt.figure() plt.plot([0.2, 0.8], [0.8, 0.8], color='green', lw=10) plt.plot([0.8, 0.3], [0.8, 0], color='green', lw=10) plt.xlim(-0.1, 1) plt.ylim(-0.1, 1) plt.axis('off') plt.savefig("./test.jpg", bbox_inches='tight', pad_inches=0) plt.close()
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt plt.figure() plt.plot([0.2, 0.8], [0.8, 0.8], color='green', lw=10) plt.plot([0.8, 0.3], [0.8, 0], color='green', lw=10) plt.x...
156
normal
recognition
8
import matplotlib.pyplot as plt import matplotlib.patches as patches fig, ax = plt.subplots(facecolor='white') ax.set_aspect('equal') ax.axis('off') circle_top = patches.Circle((0, 0.4), radius=0.4, color='yellow', fill=False, lw=5) circle_bottom = patches.Circle((0, -0.4), radius=0.4, color='yellow', fill=False, lw...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt import matplotlib.patches as patches fig, ax = plt.subplots(facecolor='white') ax.set_aspect('equal') ax.axis('off') circle_t...
157
normal
recognition
9
import matplotlib.pyplot as plt from matplotlib.textpath import TextPath from matplotlib.patches import PathPatch fig, ax = plt.subplots() path = TextPath((0, 0), '9', size=100) patch = PathPatch(path, color='purple', lw=2) ax.add_patch(patch) ax.axis('equal') ax.axis('off') plt.savefig('./test.jpg', bbox_inches='tig...
Here is a piece of Python code that draws a certain letter or number. Please determine what the letter or number is and fill the answer into << >>. import matplotlib.pyplot as plt from matplotlib.textpath import TextPath from matplotlib.patches import PathPatch fig, ax = plt.subplots() path = TextPath((0,...
158
hard
generation
Cat
Draw a cat with pointed ears, long whiskers and round eyes
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
159
hard
generation
Tree
Draw a tree with a thick and straight trunk, dense leaves, and a large round crown
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
160
hard
generation
Flower
Draw a flower with round, pink petals, a prominent center, and yellow center
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
161
hard
generation
Car
Draw a car with red body and round tires
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
162
hard
generation
House
Draw a house with a pointed roof, four square windows, and a door in the center of the house
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
163
hard
generation
Cup
Draw a cup with a round mouth, a handle on the right, and a clear curve
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
164
hard
generation
Clock
Draw a clock with a round face and the pointer pointing to 9:30
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
165
hard
generation
Windmill
Draw a windmill with four blades and each blade has a different color
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
166
hard
generation
Headphones
Draw a pair of headphones with slightly larger earmuffs and a certain curvature of the headband
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
167
hard
generation
Banana
Draw a banana with a moderate degree of curvature and a ripe yellow color
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
168
hard
generation
Hamburger
Draw a hamburger with two slices of bread sandwiched between the hamburger meat, each part should be distinguished by color, and the top slice of bread should have sesame seeds
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
169
hard
generation
Apple
Draw an apple with a small stem on top and a green leaf on it
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
170
hard
generation
Sun
Draw a sun that emits a soft glow that is lighter than the sun itself
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
171
hard
generation
Balloon
Draw a balloon with a long balloon string that is red
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
172
hard
generation
Book
Draw a book that is open and has a red cover that is larger than the pages
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
173
hard
generation
Star
Draw a star that is in the shape of a five-pointed star with five small stars around it, located on the left, right, upper and lower sides of the big star
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
174
hard
generation
Lamp
Draw a lamp with a round bulb that is suspended under the lamp pole and emits a soft yellow light
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
175
hard
generation
Doorbell
Draw a doorbell, a red round button with a small bell pattern on it
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
176
hard
generation
Moon
Draw a moon, a crescent shape, emitting a soft yellow glow
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
177
hard
generation
Key
Draw a key with a round head and 4 teeth at the tail
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
178
hard
generation
Leaves
Draw a leaf with veins and irregular jagged edges
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
179
hard
generation
Rabbit
Draw a rabbit, as long as it has a rabbit face, long and upright ears, red eyes, and a mouth with two front teeth
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
180
hard
generation
Icecream
Draw an ice cream cone with a brown cone at the bottom and a pink, spiral-shaped ice cream at the top
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
181
hard
generation
Watermelon
Draw a watermelon that is oval in shape with dark green and light green stripes on the surface
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...
182
hard
generation
Airplane
Draw a plane, from a bird's-eye view, with two wings and two tails, and the wings should be much longer than the tail
You are a code generation robot. The user will provide drawing requirements for a certain object. You need to generate directly executable Python code according to the drawing requirements to draw the image required by the user. Requirements: 1. First, analyze the basic features of the drawing object. On this basis, a...