# Make a graph for my lab report from my data

> Markdown version of https://stella.sh/how/study/graph-lab-data-in-excel for agents and LLMs.
> Make a lab report graph from your raw readings: averages, error bars, a line of best fit with its equation and labelled axes with units. Stella (stella.sh) builds it.

Give Stella (stella.sh) your readings, typed up or exported from the lab computer. It averages repeat trials, draws a labelled graph with error bars and a line of best fit in Excel or Google Sheets, and saves a picture for your report.

## What you get

- Axis titles with units and a figure caption
- Error bars from your repeat trials
- Line of best fit with its equation and R²

## Ask Stella

> My pendulum lab data is in Documents, three trials per string length. Make the graph for my lab report with error bars and a line of best fit.

## An example chat

**You:** My pendulum lab data is in Documents, three trials per string length. Make the graph for my lab report with error bars and a line of best fit.

**Stella:** Sure. Reading your trials.

*Stella works on: Pendulum lab graph*
- Averaging 3 trials at 8 lengths
- Adding standard deviation error bars
- Plotting period squared against length

**Stella:** Done. **Pendulum lab.xlsx** holds your averages and the graph, line of best fit y = 4.02x + 0.01, R² = 0.998. Squaring the period puts the points on a straight line. **Figure 1.png** is ready for the report.
Files: Pendulum lab.xlsx, Figure 1.png

Works on Windows, Mac, Linux.

## Questions

**How do I add error bars in Excel with standard deviation?**
Put each point's standard deviation in a column, then choose Error Bars, More Options, Custom, and pick that column.

**Can it do this in Google Sheets?**
Yes. Stella builds the same chart in your Google Sheet, where error bars and trendlines sit under Customize, Series.

**Is Stella free?**
Yes. Free with the ChatGPT, Claude or Gemini plan you already have.

## By hand

1. Use AVERAGE and STDEV.S across each row.
2. Insert a scatter chart, add a trendline with Display Equation and R-squared, then add axis titles with units.

## Related

- [Do the data analysis for my lab report in R or MATLAB](https://stella.sh/how/study/lab-report-statistics-in-r-or-matlab.md)
- [Format my paper in APA 7 or MLA 9](https://stella.sh/how/study/format-a-paper-in-apa-7.md)
- [Summarize a spreadsheet by category and month, with totals](https://stella.sh/how/pdf-excel/summarize-spreadsheet-by-category.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT, Claude or Gemini plan you already have.
