The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager crashed while running this job (missing heartbeats).
Error code: JobManagerCrashedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
id string | category string | sample_id string | level string | input_type string | instruction string | GT w/o anno code string | gt_wo_anno_chart image | GT code string | gt_chart image |
|---|---|---|---|---|---|---|---|---|---|
Area_1_intent_code_image | Area | Area_1 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
visitors = [12, 120, 229, 990, 4104, 3250, 5720, 43152, 41251, 50458, 45012, 62548]
fig, ax = plt.subplots(figsize=(8, 6))
line, = ax.plot(months, visitors, marker='o', color=... | import matplotlib.pyplot as plt
import numpy as np
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
visitors = [12, 120, 229, 990, 4104, 3250, 5720, 43152, 41251, 50458, 45012, 62548]
fig, ax = plt.subplots(figsize=(8, 6))
line, = ax.plot(months, visitors, marker='o', color=... | ||
Area_2_intent_code_image | Area | Area_2 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
weeks = ['Week 40', 'Week 41', 'Week 42', 'Week 43', 'Week 44']
total_message = [5488135, 7151894, 6027634, 5448832, 4236548]
total_message_with_event = [645894, 437587, 891773, 963663, 383442]
fig, ax = plt.subplots(figsize=(10, 6))
ax.set_facecolor('#f5f5f5')
line1, ... | import matplotlib.pyplot as plt
import numpy as np
weeks = ['Week 40', 'Week 41', 'Week 42', 'Week 43', 'Week 44']
total_message = [5488135, 7151894, 6027634, 5448832, 4236548]
total_message_with_event = [645894, 437587, 891773, 963663, 383442]
fig, ax = plt.subplots(figsize=(10, 6))
ax.set_facecolor('#f5f5f5')
line1, ... | ||
Area_3_intent_code_image | Area | Area_3 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
quarters = ['', 'Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4']
region_a = [40, 50, 30, 43, 40]
region_b = [20, 35, 40, 22, 20]
fig, ax = plt.subplots(figsize=(10, 6))
ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A')
ax.fill_between... | import matplotlib.pyplot as plt
import numpy as np
quarters = ['','Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4']
region_a = [40, 50, 30, 43, 40]
region_b = [20, 35, 40, 22, 20]
fig, ax = plt.subplots(figsize=(10, 6))
ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A')
ax.fill_between(... | ||
Area_4_intent_code_image | Area | Area_4 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
x_plot = [0, 1, 2, 3, 4, 5, 6, 7]
y_plot = [0, 2, 4, 3, 6, 5, 2, 0]
fig, ax = plt.subplots(figsize=(6, 6))
ax.set_xlim(0, 7)
ax.set_ylim(0, 7)
ax.set_xticks(np.arange(0, 7, 1))
ax.set_yticks(np.arange(0, 7, 1))
ax.plot([0, 7], [0, 0], color='black', linewidth=2)
ax.plo... | import matplotlib.pyplot as plt
import numpy as np
x_plot =[0,1,2,3,4,5,6,7]
y_plot =[0,2,4,3,6,5,2,0]
x = x_plot[1:-1]
y = y_plot[1:-1]
fig, ax = plt.subplots(figsize=(6, 6))
ax.set_xlim(0, 7)
ax.set_ylim(0, 7)
ax.set_xticks(np.arange(0, 7, 1))
ax.set_yticks(np.arange(0, 7, 1))
ax.plot([0, 7], [0, 0], color='black', l... | ||
Area_5_intent_code_image | Area | Area_5 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from matplotlib.patches import Patch
dates = pd.date_range(start='1996-07-01', end='1998-04-01', freq='MS')
values = [
28000,
25000,
26500,
37500,
46000,
46000,
61258.07,
38500,
38500,
52500,
53500,
36... | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from matplotlib.patches import Patch
dates = pd.date_range(start='1996-07-01', end='1998-04-01', freq='MS')
values = [
28000,
25000,
26500,
37500,
46000,
46000,
61258.07,
38500,
38500,
52500,
53500,
36... | ||
Area_6_intent_code_image | Area | Area_6 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
quarters = ['', 'Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4']
region_a = [60, 85, 70, 65, 62]
region_b = [20, 35, 40, 22, 20]
fig, ax = plt.subplots(figsize=(10, 6))
ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A')
ax.fill_between... | import matplotlib.pyplot as plt
import numpy as np
quarters = ['','Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4']
region_a = [60, 85, 70, 65, 62]
region_b = [20, 35, 40, 22, 20]
fig, ax = plt.subplots(figsize=(10, 6))
ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A')
ax.fill_between(... | ||
Area_7_intent_code_image | Area | Area_7 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import interp1d
anchors_x = np.array([
0.00, 0.10, 0.20, 0.30, 0.40, 0.55, 0.70, 0.85, 0.95, 1.05,
1.15, 1.30, 1.45, 1.60, 1.75, 1.80, 1.90, 2.00, 2.10, 2.20,
2.35, 2.50, 2.65, 2.80, 2.95, 3.10, 3.25, 3.40, 3.55, 3.70,
3.85, 4.00,... | import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import interp1d
anchors_x = np.array([
0.00, 0.10, 0.20, 0.30, 0.40, 0.55, 0.70, 0.85, 0.95, 1.05,
1.15, 1.30, 1.45, 1.60, 1.75, 1.80, 1.90, 2.00, 2.10, 2.20,
2.35, 2.50, 2.65, 2.80, 2.95, 3.10, 3.25, 3.40, 3.55, 3.70,
3.85, 4.00,... | ||
Area_8_intent_code_image | Area | Area_8 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
from matplotlib.lines import Line2D
np.random.seed(42)
components_ordered = [
('t17b17l0r0', 'red', 9.421, 0.048, 600),
('t22b21l1r1', 'orange', 11.538, 0.064, 600),
('t17b17l1r0', 'magenta', 9.890, 0.054, 550),
('t21b21l1r1', 'yellow', 11.567, 0.056, 6... | import matplotlib.pyplot as plt
import numpy as np
from matplotlib.lines import Line2D
np.random.seed(42)
components_ordered = [
('t17b17l0r0', 'red', 9.421, 0.048, 600),
('t22b21l1r1', 'orange', 11.538, 0.064, 600),
('t17b17l1r0', 'magenta', 9.890, 0.054, 550),
('t21b21l1r1', 'yellow', 11.567, 0.056, 6... | ||
Area_9_intent_code_image | Area | Area_9 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
countries = ['Canada', 'China', 'Russia', 'Australia', 'United States', 'France']
coal = [400, 800, 500, 400, 750, 350]
hydro = [350, 600, 400, 450, 700, 300]
nuclear = [200, 400, 300, 200, 500, 250]
gas = [150, 300, 250, 150, 400, 200]
oil = [100, 250, 200, 100, 300, ... | import matplotlib.pyplot as plt
import numpy as np
countries = ['Canada', 'China', 'Russia', 'Australia', 'United States', 'France']
coal = [400, 800, 500, 400, 750, 350]
hydro = [350, 600, 400, 450, 700, 300]
nuclear = [200, 400, 300, 200, 500, 250]
gas = [150, 300, 250, 150, 400, 200]
oil = [100, 250, 200, 100, 300, ... | ||
Area_10_intent_code_image | Area | Area_10 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from datetime import datetime
import pandas as pd
import platform
data = {
'Date': [
datetime(2012, 3, 20),
datetime(2012, 3, 22),
datetime(2012, 3, 23),
datetime(2012, 3, 24),
datetime(2012, 3, 25),
da... | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from datetime import datetime
import pandas as pd
data = {
'Date': [
datetime(2012, 3, 20),
datetime(2012, 3, 22),
datetime(2012, 3, 23),
datetime(2012, 3, 24),
datetime(2012, 3, 25),
datetime(2012, 3, ... | ||
Area_11_intent_code_image | Area | Area_11 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.ticker as ticker
years = np.array([1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013])
y_upper = np.array([
2360, 2390, 2450, 2400, 2470, 2520, 2540, 2080, 2040, 1990,
... | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.ticker as ticker
years = np.array([1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013])
y_upper = np.array([
2360, 2390, 2450, 2400, 2470, 2520, 2540, 2080, 2040, 1990,
... | ||
Area_12_intent_code_image | Area | Area_12 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import matplotlib.dates as mdates
from scipy.interpolate import interp1d
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans']
key_points = [
('1999-01-01', 200),
('2000-03-01', 480),
('200... | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import matplotlib.dates as mdates
from scipy.interpolate import interp1d
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans']
key_points = [
('1999-01-01', 200),
('2000-03-01', 480),
('200... | ||
Area_13_intent_code_image | Area | Area_13 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.transforms as transforms
np.random.seed(42)
def generate_segment_data_from_keyframes(start_yr, end_yr, keyframes, num_points):
x = np.linspace(start_yr, end_yr, num_points)
kf_x = [kf[0] for kf in keyframes]
kf_y = [np.log10(kf[1]) for kf ... | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.transforms as transforms
np.random.seed(42)
def generate_segment_data_from_keyframes(start_yr, end_yr, keyframes, num_points):
x = np.linspace(start_yr, end_yr, num_points)
kf_x = [kf[0] for kf in keyframes]
kf_y = [np.log10(kf[1]) for kf ... | ||
Area_14_intent_code_image | Area | Area_14 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6))
years = np.array([2014, 2015, 2016, 2017, 2018])
subsidized_data = np.array([4.5, 7.5, 8.2, 8.0, 8.3])
unsubsidized_data = np.array([3.7, 6.1, 6.3, 5.0, 3.8])
y_mid = np.array([
2235, 2250, 2310, 2270, 2360, 2410, 2435, 1975,... | import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6))
years = np.array([2014, 2015, 2016, 2017, 2018])
subsidized_data = np.array([4.5, 7.5, 8.2, 8.0, 8.3])
unsubsidized_data = np.array([3.7, 6.1, 6.3, 5.0, 3.8])
ax.plot(years, subsidized_data, color='blue', marker='o', linewidth=2,... | ||
Area_15_intent_code_image | Area | Area_15 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans']
fig, ax = plt.subplots(figsize=(8, 6))
x_shift = 0.15
x_base = [
2007.00, 2007.25, 2007.50, 2007.75,
2008.00, 2008.25, 2008.35, 2008.50, 2008.75,
2009.00, ... | import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import MultipleLocator
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans']
fig, ax = plt.subplots(figsize=(8, 6))
x_shift = 0.15
x_base = [
2007.00, 2007.25, 2007.50, 2007.75,
2008.00, 200... | ||
Area_16_intent_code_image | Area | Area_16 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
years = np.array([2009, 2010, 2011, 2012, 2013, 2014, 2015])
seizures_kg = np.array([512, 1453, 1138, 513, 375, 128, 357])
fig, ax = plt.subplots(figsize=(10, 6))
ax.plot(years, seizures_kg, color='red', linewidth=5, marker='o', markersize=8,
markerfacecolor='w... | import matplotlib.pyplot as plt
import numpy as np
years = np.array([2009, 2010, 2011, 2012, 2013, 2014, 2015])
seizures_kg = np.array([512, 1453, 1138, 513, 375, 128, 357])
fig, ax = plt.subplots(figsize=(10, 6))
ax.plot(years, seizures_kg, color='red', linewidth=5, marker='o', markersize=8, markerfacecolor='white', m... | ||
Area_17_intent_code_image | Area | Area_17 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
years = np.array([1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2009, 2010, 2011, 2012, 2013, 2014])
values = np.array([35, 58, 58, 30, -5, -50, -58, -62, -64, -65,
-85, -125, -155, -185, -210, -241])
fig, ax = plt.sub... | import matplotlib.pyplot as plt
import numpy as np
years = np.array([1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2009, 2010, 2011, 2012, 2013, 2014])
values = np.array([35, 58, 58, 30, -5, -50, -58, -62, -64, -65,
-85, -125, -155, -185, -210, -241])
fig, ax = plt.sub... | ||
Area_18_intent_code_image | Area | Area_18 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
years = np.arange(1980, 2022)
n_years = len(years)
cpi_values = np.linspace(0, 236, n_years)
tuition_values = (np.linspace(0, 1, n_years)**1.3) * 1200
tuition_values[0] = 0
fig, ax = plt.subplots(figsize=(10, 10))
bg_color = '#E6E3DD'
fig.patch.set_facecolor(bg_color)
... | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as patches
years = np.arange(1980, 2022)
n_years = len(years)
cpi_values = np.linspace(0, 236, n_years)
tuition_values = (np.linspace(0, 1, n_years)**1.3) * 1200
tuition_values[0] = 0
fig, ax = plt.subplots(figsize=(10, 10))
bg_color = '#E6E3D... | ||
Area_19_intent_code_image | Area | Area_19 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.dates as mdates
from datetime import datetime
dates_str = [
'2014-01-01', '2014-06-01', '2014-11-01', '2015-01-01', '2015-06-01', '2015-12-01',
'2016-01-01', '2016-06-01', '2016-12-01', '2017-01-01', '2017-06-01', '2017-07-01',
'2017-12-01... | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.dates as mdates
from datetime import datetime
dates_str = [
'2014-01-01', '2014-06-01',
'2014-11-01',
'2015-01-01', '2015-06-01', '2015-12-01',
'2016-01-01', '2016-06-01', '2016-12-01',
'2017-01-01', '2017-06-01',
'2017-07-01',... | ||
Area_20_intent_code_image | Area | Area_20 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from datetime import datetime
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6))
plt.title('Global coronavirus cases still rising fast', fontsize=20, fontweight='bold', pad=20)
dates = [
datetime(2019, 12, 31), datetime(2020, 2, 1), datetime(... | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from datetime import datetime
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6))
plt.title('Global coronavirus cases still rising fast', fontsize=20, fontweight='bold', pad=20)
dates = [
datetime(2019, 12, 31), datetime(2020, 2, 1), datetime(... | ||
Area_21_intent_code_image | Area | Area_21 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import matplotlib.ticker as mticker
from matplotlib.offsetbox import TextArea, HPacker, AnnotationBbox
import pandas as pd
import numpy as np
from datetime import datetime
start_date = datetime(2020, 1, 1)
end_date = datetime(2020, 6, 15)
dates = pd.date... | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from matplotlib.offsetbox import TextArea, HPacker, VPacker, AnnotationBbox
import pandas as pd
import numpy as np
from datetime import datetime
start_date = datetime(2020, 1, 1)
end_date = datetime(2020, 6, 15)
dates = pd.date_range(start=start_date, en... | ||
Area_22_intent_code_image | Area | Area_22 | intent | Input: code+Image | You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help... | import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import make_interp_spline
from matplotlib.patches import Patch
from matplotlib.lines import Line2D
days = np.linspace(0, 365, 365)
months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]
month_labels = ['1-Jan', '1-Feb', '1-Mar', '1-Apr'... | import matplotlib.pyplot as plt
import numpy as np
from matplotlib.patches import Rectangle
from scipy.interpolate import make_interp_spline
days = np.linspace(0, 365, 365)
months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]
month_labels = ['1-Jan', '1-Feb', '1-Mar', '1-Apr', '1-May', '1-Jun',
... |
End of preview.