Dataset Viewer
Auto-converted to Parquet Duplicate
source_index
int64
11
163k
image
imagewidth (px)
147
2.38k
user_content
stringclasses
2 values
assistant_content
stringlengths
418
4.57k
120,459
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Set the data for the hist chart based on remote sensing technologies # Columns: Technology, Min, Q1, Median, Q3, Max, Outlier technologies = ['LiDAR', 'RADAR', 'Hyperspectral', 'Thermal', 'Multispectral'] min_vals = [100, 200, 150, 50, 75] q1_vals = [200, 400, 300, 100, 150]...
137,745
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Part 1: Data Preparation # Fluctuating data for Cultural Practices cultural_practices = [2, 5, 7, 9, 12] cultural_practices_outliers = [15, 18] festival_celebrations = [3, 6, 8, 10, 13] festival_outliers = [16, 20] # Fluctuating data for Tonal Analysis t...
155,093
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data datasets = ['Dataset A', 'Dataset B', 'Dataset C'] model1 = [30, 40, 45] model2 = [35, 45, 50] model3 = [40, 50, 55] model4 = [45, 55, 60] model5 = [50, 60, 65] # X-axis positions x = np.arange(len(datasets)) # Bar width bar_width = 0.12 # Plotting...
148,592
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import os # Generate sample data data = [np.random.normal(0, std, 100) for std in range(2, 7)] # Create a figure with a specified size plt.figure(figsize=(10, 6)) # Create the boxplot box = plt.boxplot(data, patch_artist=True) # Set colors for each box col...
104,072
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D # Define CSV data csv_data = """Month,Number of Attacks,Number of Breaches January,50,10 February,40,8 March,60,12 April,70,15""" # Parse CSV data data_lines = csv_data.strip().split("\n") header = data_lines[0].split...
69,703
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data data = { 'temperature': [25, 32, 41], 'pressure': [1010, 1020, 1030], 'humidity': [55, 60, 65] } # Colors colors = ['#2F4F4F', '#008B8B', '#F0F8FF', '#B22222', '#5F9EA0'] # Setting the figure and axis fig, ax1 = plt.subplots(figsize=(10,...
45,395
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np from scipy.stats import gaussian_kde # =================== # Part 1: Data Preparation # =================== # Data derived from "Quantum Computing" quantum_data_1 = np.array([10500.5, 11000.9, 11500.3, 12000.7, 12500.4]) quantum_data_2 = np.array([3950.3, 45...
36,850
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import numpy as np import matplotlib.pyplot as plt # Generated CSV data csv_data_1 = "Communication,80\nTransportation,75\nEnergy,60\nManufacturing,45" csv_data_2 = "Agriculture,55\nFinance,85\nRetail,65\nLogistics,70\nTelecommunications,90" csv_data_3 = "Security,45\nCompliance,70\nProductivity,60" # Data ...
67,401
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data sectors = ['Finance', 'Education', 'Employment', 'Security'] values = [75, 85, 60, 50] # Axes configuration n = len(sectors) angles = np.linspace(0, 2 * np.pi, n, endpoint=False).tolist() angles += angles[:1] values += values[:1] # Figure size fig,...
1,556
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt from matplotlib.pyplot import pie, axis, title, legend # Creating figure fig = plt.figure(figsize=(10, 10)) # Data labels = ['VR Training', 'AR Navigation', '360 Video Production', 'Mixed Reality Collaboration', 'Immersive Storytelling'] sizes = [8000, 9000, 8500, 7000, 7800]...
98,585
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data in CSV format csv_data = '''Digital Wallet,2000,5000,7500,8500,10000,[12000;15000] Online Banking,3000,6000,8000,9000,11000,[12000] Crowdfunding,100,300,500,800,1000,[2000] Cryptocurrency Exchange,2000,4500,7000,8500,12000,[14000;16000] Payments Processor,1500,4000,6500...
32,057
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data x = np.arange(1, 4) # Metrics Task_Completion = [85, 92, 88] Efficiency = [78, 85, 80] Accuracy = [90, 87, 89] Response_Time = [60, 55, 58] User_Satisfaction = [75, 80, 78] # Create figure plt.figure(figsize=(10, 6)) # Create a subplot ax = plt.sub...
155,273
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import os # Data for the plots contrast = np.array([0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4]) contrast_ours = np.random.uniform(-20, 20, len(contrast)) contrast_baseline = np.random.uniform(-20, 20, len(contrast)) sharpness = np.array([0.75, 0.8, 0....
101,705
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import numpy as np import matplotlib.pyplot as plt # Data categories = ["Technology", "Finance", "Retail", "Tourism", "Energy", "Transportation", "Food Services"] values = [80, 65, 50, 35, 55, 45, 60] # Plotting fig, ax = plt.subplots(figsize=(8, 6)) # Bar plot bars = ax.bar(categories, values, color=['#94...
117,447
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Generated Data # Series 1: Data from different sustainability sites with item valuations site_data = { "Site 1": [5000, 2000, 800], "Site 2": [6000, 2200, 900], "Site 3": [5500, 2100, 850], "Site 4": [5200, 2150, 900] } # Series 2: Data f...
118,748
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import pandas as pd import matplotlib.pyplot as plt import numpy as np # Data for the heatmap data = { 'Model': ['Linear Regression', 'Random Forest', 'SVM', 'Neural Network', 'KNN'], 'Acc Train': [0.8, 0.85, 0.82, 0.9, 0.78], 'Q1 Train': [0.75, 0.83, 0.8, 0.87, 0.75], 'Median Train': [0.78, ...
158,776
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import os # Data for the plot x_values = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9] y_values = [0.3, 0.4, 0.5, 0.6, 0.7, 0.5, 0.6, 0.4, 0.8] # Create the figure and axis fig, ax = plt.subplots(figsize=(10, 6)) # Plot the bars ax.bar(x_values, y_values, w...
33,283
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data Preparation categories = ['Email Campaign', 'Blog', 'SEO', 'PPC', 'Affiliates'] min_values = [50, 10, 100, 200, 25] q1_values = [200, 50, 500, 600, 100] median_values = [350, 200, 900, 1000, 250] q3_values = [800, 300, 1200, 1400, 400] max_values = [1...
113,789
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec import numpy as np # Data generation based on the given CSV data paradigms = ["Analytic", "Continental", "Pragmatic"] values = [35, 50, 45] # Create Figure and GridSpec Layout fig = plt.figure(figsize=(10, 6)) gs = GridSpec(1, 2, figur...
99,810
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import pandas as pd import numpy as np # Define our data data = { "Industry": ["Agriculture", "Manufacturing", "Healthcare", "Education", "Technology"], "Min": [200, 500, 100, 50, 1000], "Q1": [400, 1000, 300, 200, 2000], "Median": [600, 1500, 500, 400, 3000], ...
1,782
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data categories = ['TypeA', 'TypeB', 'TypeC'] labels = ['Label1', 'Label2', 'Label3'] values = { 'TypeA': [1200, 4000, 7000, 1500, 4200, 7100], 'TypeB': [1100, 3900, 6800, 1300, 4100, 6900, 1400, 4000, 7200], 'TypeC': [1250, 4050, 6850, 1350, 4...
75,928
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data to plot categories = ['Technology', 'Climate Change', 'Economics', 'Culture'] values = [55, 30, 40, 25] colors = ['#F0F8FF', '#006400', '#FFEBCD', '#BDB76B'] # Create a pie chart plt.figure(figsize=(10, 10)) plt.pie(values, labels=categories, colors=colors, autopct='%1...
69,701
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Example data parsed from CSV data = { "Magnitude": 6.5, "Depth": 10, "Location": 100, "Duration": 50 } categories = list(data.keys()) values = list(data.values()) # Create figure and axis fig, ax = plt.subplots(figsize=(10, 6)) # Plottin...
4,548
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import numpy as np import matplotlib.pyplot as plt # Data csv_data = '''label,200,800,3000 label,300,1500,4000 label,400,2000,5000 label,500,2500,6000''' # Parsing the CSV data data_lines = csv_data.split('\n') labels = [line.split(',')[0] for line in data_lines] values = np.array([list(map(int, line.split(...
53,684
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for threat levels and incidents threat_levels = [200, 250, 300, 350] incident_counts = [1500, 1600, 1700, 1800] incident_severity = [7500, 8000, 8500, 9000] # Define a color palette colors = ['#DC143C', '#696969', '#1E90FF', '#FF7F50'] # Create a fi...
47,851
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data for the pie chart labels = ['Supply', 'Demand', 'Inventory', 'LeadTime', 'Transportation', 'StorageCost', 'CustomerSatisfaction'] sizes = [500, 550, 450, 600, 620, 480, 490] colors = ['#DC143C', '#DEB887', '#1E90FF', '#F5F5DC', '#483D8B', '#9400D3', '#7FFF00'] # Creati...
3,085
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import numpy as np import matplotlib.pyplot as plt # Data for Autonomous Vehicle Systems data_labels = ['Min', 'Q1', 'Median', 'Q3', 'Max'] line_labels = ['Lidar', 'Radar', 'Camera', 'Ultrasonic'] data = np.array([ [100, 300, 500, 700, 1000], [50, 200, 400, 600, 900], [200, 500, 800, 1200, 1500],...
58,631
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data labels = ['Type 1', 'Type 2', 'Type 3', 'Type 4'] sizes = [ sum([200, 350, 900]), sum([250, 400, 1000]), sum([300, 450, 1100]), sum([350, 500, 1200]) ] colors = ['#1E90FF', '#00BFFF', '#DC143C', '#8A2BE2'] explode = (0.1, 0.1, 0.1, 0.1) # Explode all sl...
70,011
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np # dataset data = np.array([ [200, 300, 450, 600], [220, 320, 470, 620], [240, 340, 490, 640], [260, 360, 510, 660], [280, 380, 530, 680] ], dtype=np.float32) # y-axis labels impact_categories =...
90,277
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for Smart Grid Metrics data_labels = ['Energy Consumption', 'Cybersecurity', 'Network Efficiency', 'Customer Satisfaction', 'Operational Cost'] data = [50, 80, 45, 75, 65] # Create the figure fig = plt.figure(figsize=(10, 10)) ax = fig.add_subplot(1,...
47,264
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data csv_data = """Department,HR,Finance,IT,Sales 2015,2300,3400,5400,6700 2016,2500,3600,5600,7100 2017,2700,3800,5800,7500 2018,3000,4000,6000,8000""" # Parse the data data = np.array([list(map(int, row.split(','))) for row in csv_data.split('\n')[1:]])...
149,481
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import os # Generate sample data for demonstration purposes np.random.seed(42) data_a = [np.random.normal(0, std, 150) for std in range(2, 9)] data_b = [np.random.normal(0, std, 150) for std in range(2, 9)] data_c = [np.random.normal(0, std, 150) for std in r...
133,812
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Set random seed for reproducibility np.random.seed(42) # Load the CSV data into arrays web_services = ['ServiceA', 'ServiceB', 'ServiceC', 'ServiceD'] min_values = np.array([10, 5, 8, 12]) q1_values = np.array([25, 15, 20, 30]) median_values = np.array([...
82,170
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for ring chart data_labels = ['Temperature', 'Humidity', 'Wind Speed'] data = np.array([20, 30, 25]) # Create the ring chart fig, ax = plt.subplots(figsize=(8, 8)) palette = ['#006400', '#FF1493', '#00BFFF'] ax.pie(data, labels=data_labels, startang...
141,241
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for pie chart A categories_a = ['Transportation', 'Technology', 'Construction'] values_a = np.array([60, 80, 90]) # Color palette palette = ['#DB7093', '#9400D3', '#696969', '#F08080', '#ADFF2F', '#48D1CC', '#00BFFF', '#FF69B4', '#FFE4E1', '#FDF5E6']...
129,685
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Load the first set of data data1 = { "Innovation": ["Electric Vehicles", "Bike Sharing", "Ride Hailing", "Micromobility", "Telecommuting"], "Value": [85, 78, 92, 68, 74] } # Load the second set of data data2 = { "Transport Mode": ["Subway", "B...
134,816
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python # Importing required libraries for data plotting import matplotlib.pyplot as plt import numpy as np # Data for scatter plot x = ['BERT', 'GPT-3', 'XLNet', 'RoBERTa', 'ALBERT'] min_vals = [500, 1200, 700, 400, 600] medians = [3000, 2400, 2100, 1700, 1600] q1_vals = [1500, 1800, 1300, 1000, 1100] q3_vals = [45...
95,630
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data for the pie chart labels = ['Lighting', 'Security', 'Energy Management', 'Entertainment', 'Climate Control'] sizes = [25, 35, 20, 10, 10] colors = ['#00BFFF', '#6495ED', '#D2691E', '#DC143C', '#1E90FF'] explode = (0.1, 0, 0, 0, 0) # Create a pie chart plt.figure(figsiz...
127,058
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for the first subplot products = ['Laptop', 'Smartphone', 'Tablet', 'Smartwatch', 'Headphones'] min_values = [500, 200, 150, 50, 30] median_values = [1000, 600, 400, 200, 100] mean_values = [1100, 700, 450, 250, 120] max_values = [2000, 1500, 900, 400...
55,564
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data months = np.arange(1, 5) # Representing four different time points values_1 = [300, 350, 400, 450] values_2 = [800, 900, 1000, 1100] values_3 = [1500, 1600, 1700, 1800] # Create figure plt.figure(figsize=(12, 6)) # Create subplots ax1 = plt.subplot...
82,494
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python # Part 1: Importing libraries import matplotlib.pyplot as plt import numpy as np # Part 2: Data Preparation # Data from the csv_data data = { "mass": [1.99e+30, 3.30e+23, 4.87e+24, 6.42e+23, 1.90e+27], "distance": [5.79e+10, 1.08e+11, 1.50e+11, 2.28e+11, 7.79e+11], "temperature": [5778, 167, -63,...
64,339
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import numpy as np import matplotlib.pyplot as plt # Data from JSON csv_data = """Month,Recognition Accuracy (%),Processing Time (ms),Dataset Size (GB) January,85.5,120,2.3 February,87.2,110,2.5 March,88.9,105,2.7 April,90.1,100,2.9 May,91.0,95,3.1""" # Process data lines = csv_data.split('\n') labels = lin...
155,616
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import os # Data for plotting np.random.seed(42) data1 = [np.random.normal(0, std, 150) for std in range(4, 8)] data2 = [np.random.normal(0, std, 150) for std in range(4, 8)] # Create figure and axes fig, ax = plt.subplots(figsize=(12.0, 7.0)) # Plotting th...
142,655
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np # Data Labels and Dataset data_labels = ['Category', 'Measure A', 'Measure B', 'Measure C'] data = [['A', 200, 600, 1500], ['B', 300, 700, 1700], ['C', 250, 650, 1600], ['D', 350, 750, 1800], ['E', 400, 800, 2000]] # Prepping data...
21,592
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns # Data related to Advanced Manufacturing Processes data = {'Category': ['Automotive Industry', 'Renewable Energy', 'Smart Manufacturing', 'Industry 4.0'], 'Value': [60, 50, 85, 70]} df = pd.DataFrame(data, c...
57,915
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D # Data categories = ['Energy Efficiency', 'Green Spaces', 'Public Transport', 'Water Management', 'Waste Reduction'] values1 = [200, 50, 150, 100, 30] values2 = [300, 200, 250, 150, 80] values3 = [500, 400, 350, 250, 1...
50,474
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np # New data labels and dataset related to economic sectors data_labels = ['Revenue ($ Billion)'] data = [['Transportation', 120], ['Manufacturing', 450], ['Agriculture', 200], ['Education', 300], ...
63,444
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # CSV data parsed data = { "Behavioral Measure": ["Reaction Time", "Memory Recall", "Attention Span", "Decision Accuracy"], "Min": [200, 10, 5, 70], "Q1": [350, 30, 10, 80], "Median": [500, 50, 15, 85], "Q3": [600, 70, 25, 90], "Max":...
23,115
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import squarify # Data for AI in various sectors categories = ['Industry', 'Healthcare', 'Education', 'Transportation', 'Agriculture'] values = [50, 70, 45, 80, 60] # Use a distinctive color palette colors = ['#8FBC8F', '#1E90FF', '#FF1493', '#00CED1', '#D2691E'] # Create a ...
1,520
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # CSV data csv_data = """Healthcare System,50,150,300,450,600,[800];E-commerce Platform,100,300,500,700,900,[1200, 1500];Financial Services,200,400,600,800,1000,[1300];Education Providers,70,180,320,460,620,[750];Government Agencies,150,350,550,750,950,[1250...
54,976
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data regions = ['North', 'East', 'South', 'West', 'Central'] population = [200000, 150000, 180000, 130000, 220000] density = [50, 70, 60, 80, 55] area = [4000, 3000, 3500, 2500, 4500] # Color palette colors = ['#DC143C', '#5F9EA0', '#00CED1', '#7FFFD4', '#FF1493'] # Create...
139,779
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for Population Density and Area plot district_data = { "districts": ["Central", "North", "South", "East", "West"], "Population": [80000, 60000, 70000, 75000, 65000], "Density": [15000, 12000, 16000, 14000, 13000], "Area (sq km)": [5, 6...
50,150
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for Sector Activity Data data_labels = ['Occupation', 'Education', 'Health', 'Transportation', 'Entertainment'] data = [90, 160, 230, 320, 55, 120, 175, 250, 75, 140, 210, 300, 100, 180, 260, 330, 80, 150, 220, 310] # Color palette palette = ['#A52A2...
50,021
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import squarify import pandas as pd import numpy as np # Convert CSV string data into a DataFrame csv_data = '''label,500,2500,7500 label,600,3000,8000 label,700,3500,9000 label,800,4000,9500 label,900,4500,10000''' from io import StringIO df = pd.read_csv(StringIO(csv_data)...
31,394
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D # Data months = ['January', 'February', 'March', 'April', 'May', 'June', 'July'] energy_produced = [320, 290, 300, 310, 320, 330, 340] energy_consumed = [310, 280, 295, 300, 315, 320, 330] co2_emissions = [50000, 48000...
157,220
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import os # Set the figure size plt.figure(figsize=(12.0, 9.0)) # Define the positions of the nodes nodes = { 'A': (5, 2), 'B': (2, 5), 'C': (2, 2) } # Draw the nodes and the edges for label, (x, y) in nodes.items(): circle = plt.Circle((x, y), 0.2, color='blu...
24,561
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data preparation data = {'Technology': 25, 'Fitness': 50, 'Travel': 75, 'Finance': 100, 'Entertainment': 60} labels = list(data.keys()) sizes = list(data.values()) # Plotting pie chart fig, ax = plt.subplots(figsize=(10, 10)) palette = ['#DC143C', '#5F9EA0', '#6495ED', '#00...
114,865
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data species_data = [ {"species": "Lion", "values": [1.0, 2.0, 3.0, 4.0, 5.0]}, {"species": "Tiger", "values": [1.2, 2.2, 3.2, 4.2, 5.2]}, {"species": "Leopard", "values": [1.1, 2.1, 3.1, 4.1, 5.1]}, {"species": "Zebra", "values": [0.9, 1.9...
33,007
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import numpy as np import matplotlib.pyplot as plt # Data for the line chart data = { "Finance": 75, "Employment": 85, "Safety": 60, "Infrastructure": 90 } categories = list(data.keys()) values = list(data.values()) # Plot configuration plt.figure(figsize=(10, 6)) palette = ['#9400D3', '#8F...
127,182
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python # Import necessary libraries import matplotlib.pyplot as plt import numpy as np # First dataset related to building types and their sustainable features labels1 = ['Residential', 'Commercial', 'Industrial', 'Public', 'Mixed Use'] green_certification = ['LEED Gold', 'LEED Platinum', 'LEED Silver', 'LEED Gold'...
14,101
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D # Data initialization data = np.array([ [120, 200, 150, 80] ]) # Labels for the categories categories = ['Sales', 'Marketing', 'Engineering', 'HR'] values = data[0] # Create a figure fig = plt.figure(figsize=(10,...
135,139
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data Preparation data = { "Category": ["Battery Storage", "Grid Integration", "Energy Efficiency", "Demand Response"], "Value": [60, 55, 70, 65], } # Customizing figure size, font sizes, and palette plt.figure(figsize=(8, 4)) palette = ['#FF8C00',...
60,089
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import pandas as pd import matplotlib.pyplot as plt import mplfinance as mpf # Updated data related to fish species data = { 'Date': ['2023-01-10', '2023-01-17', '2023-01-24', '2023-01-31', '2023-02-07', '2023-02-14', '2023-02-21', '2023-02-28', '2023-03-07', '2023-03-14'], 'Open': [300, 320, 340, 36...
161,028
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import os # Data for the bar chart elements = ['Humidity', 'Soil Type', 'Light Intensity', 'Pollution', 'Air Circulation', 'Microorganisms', 'Pruning', 'Mulching', 'Weed Control', 'Pollination'] effects = [0.12, 0.18, 0.22, 0.08, 0.14, 0.16, 0.21, 0.19, 0.17, 0.13] uncertainti...
57,285
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data for boxplot data = [ [45, 78, 150], # AirQuality [12, 23, 35], # WaterLevel [30, 60, 90], # SoilMoisture [55, 70, 85], # NoiseLevel [18, 24, 30] # Temperature ] # Color palette colors = ['#FFEBCD', '#696969', '#BDB76B', '#6495ED', '#7FFFD4...
33,700
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Example Data data = { 'AR Game': {'Min': 100, 'Q1': 200, 'Median': 300, 'Q3': 400, 'Max': 500, 'Outlier': [700, 900]}, 'Virtual Tour': {'Min': 50, 'Q1': 100, 'Median': 250, 'Q3': 400, 'Max': 450, 'Outlier': [600]}, 'Education AR': {'Min': 10, '...
162,100
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data equations = ['Laplace', 'Advection', 'Convection', 'Fokker-Planck', 'KdV', 'Euler'] method_a = [0.1, 0.001, 0.03, 0.04, 0.005, 0.12] method_b = [0.15, 0.0015, 0.045, 0.05, 0.007, 0.18] method_c = [0.2, 0.002, 0.06, 0.06, 0.01, 0.22] bar_width = 0.2 i...
48,534
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import squarify # Define the data from your dataset data_labels = ['150', '200', '250', '300', '350'] data_values = [4500, 4800, 5100, 5400, 5700] # Define a color palette with recognizable colors colors = ['#6495ED', '#7FFF00', '#00FFFF', '#0000FF', '#D2691E'] # Create a fi...
11,696
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data categories = ['Technology', 'Finance', 'Food Industry'] values = [55, 78, 64] # Set colors from the palette colors = ['#DC143C', '#DEB887', '#BDB76B'] # Create bar chart fig, ax = plt.subplots(figsize=(10, 6)) bars = ax.bar(categories, values, color=colors) # Add ti...
109,767
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data Preparation labels = ['Battery Storage', 'Flywheel Storage', 'Pumped Hydro Storage', 'Thermal Storage', 'Compressed Air Storage'] min_vals = [50, 20, 70, 30, 10] q1_vals = [150, 60, 220, 90, 30] median_vals = [300, 110, 400, 150, 50] q3_vals = [450, 1...
114,254
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import pandas as pd # Data for the heatmap data = { 'Machine Type': ['Sensor', 'Actuator', 'Controller', 'Gateway'], 'Min': [12, 9, 7, 5], 'Q1': [18, 15, 10, 8], 'Median': [22, 20, 14, 12], 'Q3': [28, 25, 20, 16], 'Max': [35, 30, 26, ...
144,369
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import pandas as pd import os # Data for Forensic Analysis csv_data = "DNA_Forensics,5500,12000,18000\nToxicology_Analysis,4500,8500,16000\nFingerprints,6000,11000,17000\nCyber_Forensics,5000,10000,15000" data_lines = csv_data.split('\n') columns = ['Field', 'Sample1', 'Sample...
162,294
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import os # Data categories = ['α=0.2', 'α=0.4', 'α=0.6'] series_labels = ['A10.5', 'B15.3', 'C12.8', 'D14.2', 'E13.1'] values = [ [15, 5, 10, 20, 10], [25, 15, 20, 10, 5], [30, 20, 15, 5, 10] ] # Colors for each category colors = ['#80bfff', '#...
92,085
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np import pandas as pd # Create a DataFrame from the CSV data data = { 'Experiment': ['Experiment 1', 'Experiment 2', 'Experiment 3', 'Experiment 4'], 'Condition 1': [5.2, 4.8, 6.0, 5.5], 'Condition 2': [3.8, 2.9, 4.1, 3.5], 'Condition 3': [2.4,...
54,675
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data materials = ['Steel', 'Concrete', 'Timber'] density = [7850, 2400, 600] elastic_modulus = [200000, 30000, 10000] thermal_expansion = [12, 10, 5] yield_strength = [250, 40, 30] # Define colors colors = ['#2F4F4F', '#B22222', '#8FBC8F'] # Setup figure...
118,798
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python # Part 1: Importing Libraries Needed import matplotlib.pyplot as plt import squarify # Part 2: Data Preparation for the First Treemap sizes_1 = [65, 85, 50, 75, 60, 45, 35] labels_1 = [ "Architecture\n65", "Data Governance\n85", "Risk Management\n50", "Software Security\n75", "Network Sec...
8,272
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D # Data initialization and setup data1 = np.array([ [5000, 3000, 2000], [7000, 4000, 3000], [8000, 4500, 3500], [9000, 5000, 4000] ]) data2 = np.array([ [6000, 3200, 2800], [7500, 3300, 2900], ...
44,236
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Dataset data = { 'Water Conservation': 50, 'Forest Management': 75, 'Wildlife Protection': 65, 'Soil Health': 80 } # Extracting keys and values categories = list(data.keys()) values = list(data.values()) # Plotting the line chart plt.figure(figsize=(10, 6))...
116,219
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data from the CSV data_labels1 = ['Blockchain', 'FinTech', 'Supply Chain', 'Healthcare', 'Voting'] data1 = np.array([80, 75, 60, 70, 55]) # Define colors palette for the first subplot colors1 = ['#FFF0F5', '#9370DB', '#EEE8AA', '#228B22', '#BA55D3'] # Cr...
112,026
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for the radar chart data_labels = ['Satellite Count', 'Resolution(m)', 'Frequency(GHz)'] line_labels = ['February', 'March', 'April', 'May', 'June'] data = np.array([[15, 0.5, 13.6], [20, 0.25, 12.8], [25, 0.1, 14.2...
61,944
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data from CSV labels = ['January', 'February', 'March', 'April', 'May', 'June'] sizes_buses = [4, 5, 6, 8, 9, 10] # Number of Electric Buses sizes_stations = [16, 18, 20, 25, 30, 35] # Number of Charging Stations # Creating figure with two subplots fig, (ax1, ax2) = plt.s...
133,464
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data for each barrier type barrier_types = ["Physical", "Cognitive", "Emotional", "Financial", "Social"] min_values = [5, 3, 2, 4, 6] q1_values = [10, 7, 5, 9, 11] median_values = [15, 11, 8, 14, 16] q3_values = [12, 9, 6, 11, 13] max_values = [20, 18, 15,...
101,856
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import numpy as np import matplotlib.pyplot as plt # Data data_labels = ['Performance', 'Usability', 'Accessibility', 'Affordance', 'Consistency'] line_labels = ['Alpha', 'Beta', 'Gamma', 'Delta', 'Epsilon'] data = np.array([ [85, 75, 95, 70, 60], [80, 70, 90, 65, 55], [75, 65, 85, 60, 50], ...
43,664
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data labels = ['Solar', 'Wind', 'Hydro', 'Geothermal', 'Biomass'] sizes = [40, 30, 15, 10, 5] colors = ['#00FFFF', '#6495ED', '#8B0000', '#7FFF00', '#483D8B'] # Creating figure fig = plt.figure(figsize=(10, 8)) # Plotting Pie Chart ax = fig.add_subplot() ax.pie(sizes, labe...
124,108
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python # Import necessary libraries import matplotlib.pyplot as plt import pandas as pd import seaborn as sns # Data for generating heatmap data = { 'device_type': ['AR_headset', 'AR_headset', 'AR_headset', 'tablet', 'tablet', 'tablet', 'smartphone', 'smartphone', 'smartphone'], 'rendered_frames': [200, 195...
143,418
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Data categories = ['Fitness App', 'E-commerce', 'Weather Station', 'Air Quality Monitor', 'Smart Home'] Min = [250, 100, 50, 30, 100] Q1 = [1000, 1500, 400, 200, 600] Median = [3000, 4000, 1000, 800, 1500] Q3 = [5000, 6500, 1800, 1500, 2500] Max = [7500, 9...
45,437
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt # Data values (Algorithm and Speed) for the bar chart algorithm = ['QAOA', 'Grover', 'Shor'] speed = [200, 150, 100] # Bar chart styles and formatting palette = ['#7FFFD4', '#FFB6C1', '#00FFFF'] # Color palette for bars font_size = [12, 14, 16] # Random font sizes for title...
58,028
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import numpy as np # Part 1: Data Preparation regions = ['North', 'East', 'West', 'South'] population = np.array([250000, 300000, 220000, 270000]) area = np.array([1500, 1800, 1400, 1600]) elevation = np.array([350, 450, 300, 400]) # Part 2: Plotting the Data fig, (ax1, ax2) ...
146,035
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt import os # Data for the bar charts algorithms = ['Algorithm A', 'Algorithm B', 'Algorithm C', 'Algorithm D', 'Algorithm E'] dataset1_scores = [15.5, 20.3, 18.0, 16.7, 19.2] dataset2_scores = [10.1, 12.5, 11.3, 13.0, 14.2] dataset3_scores = [5.0, 7.5, 6.3, 8.0, 9.2] # Create a...
104,903
<image> You are an expert Python developer who specializes in writing matplotlib code based on a given picture. I found a very nice picture in a STEM paper, but there is no corresponding source code available. I need your help to generate the Python code that can reproduce the picture based on the picture I provide. No...
```python import matplotlib.pyplot as plt plt.figure(figsize=(12, 12)) # 1200x1200 pixels labels = ['Mobile Network', 'Fiber Optics', 'Satellite Service', 'Radio Frequency', 'Internet Service'] sizes = [10, 20, 15, 25, 30] colors = ['#E9967A', '#00CED1', '#9400D3', '#FAEBD7', '#FF7F50'] explode = (0.1, 0, 0, 0, 0) ...
End of preview. Expand in Data Studio

VinciCoder Chart2Code, rows 0-10000 of seed 0

10,000 chart-to-code examples (chart image, instruction, reference matplotlib program) drawn from the chart2code_1.parquet file of DocTron-Hub/VinciCoder-1.6M-SFT (revision 974a038fb6f695e7a935112d4df430926fc468b3). All rights and terms are those of the source dataset and the works it collects.

Selection

  • The first 163,186 of the file's 210,137 rows (the Chart2Code head) are split by SHA-256 of the image: 1% held out (1,678 rows, never included here), 161,508 for training.
  • The training rows are shuffled once with random.Random(0).shuffle(train_indices); this dataset is positions [0, 10000) of that order, in that order. permutation.json holds the full order (sha256 bc4a30fffc10377e4c56b71dfbe5679a5e93e5d3723a392c4d7abcc3cc90aa34), so [10000, 10000 + N) gives the next, non-overlapping chunk.
  • manifest.json records the source split and the sha256 of these indices (f399c46e442a9895af38ed8c7e74a3d884f5059980c2a486f9a4d8ec3c32c8ff).

Columns

Column Meaning
source_index Row number in the source chart2code_1.parquet
image Reference chart
user_content Instruction
assistant_content Reference answer (matplotlib code)
Downloads last month
181