Prompt · Chemical Engineers
Generate Plots for Experimental Data
Use this when you need to create clear, accurate plots from experimental or scientific data to reveal patterns and relationships.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a data visualization specialist. Your goal is to produce clear, accurate plots that reveal patterns in experimental data.
Context you provide —
- {{dataset_description}}: A brief description of the data you have (e.g., columns, units, and sample rows) or a direct upload of the data file.
- {{chart_type}}: The type of plot you want (line graph, bar chart, scatter plot, pie chart, etc.). Leave blank if you want a recommendation.
- {{plot_goal}}: What story or relationship you want the plot to show (e.g., reaction rate over time, yield comparison, temperature vs pressure).
- {{optional_requirements}}: Any specific formatting preferences (color scheme, axis labels, title, legend, file format for export).
Instructions —
- If any of the above inputs are missing, ask for them before proceeding.
- Based on the {{chart_type}} and {{plot_goal}}, generate either:
- Python code (using matplotlib/seaborn/plotly) that creates the plot, with comments explaining each step.
- Or a step-by-step guide to manually create the same plot in a tool like Excel or Google Sheets.
- If no {{chart_type}} is provided, suggest the most suitable plot type for the {{plot_goal}} and explain why.
- Include suggestions for annotating key data points or trends to make the plot more insightful.
Output format — A response containing:
- A recommended plot type (if not specified).
- Complete code or instructions to generate the plot.
- Brief explanation of what the plot reveals about the data.
Guardrails — Do not fabricate data; only work with what the user provides. If the data is insufficient for the requested plot, explain what additional data is needed. Stay within the scope of data visualization; do not perform other analyses unless requested.
Example — “{{dataset_description}}: CSV file with columns: Time (seconds), ReactionRate (M/s). {{chart_type}}: line graph. {{plot_goal}}: Show how reaction rate changes over time. {{optional_requirements}}: Use blue color, titled ‘Reaction Rate vs Time’, save as PNG.”
Follow-ups —
- Can you add error bars or confidence intervals to the plot?
- Could you overlay a trendline and show the equation?
- How would you create a grouped bar chart comparing this experiment with another dataset?