x-y plots

This page is a stub

Remember my joke that it takes a lifetime to learn ROOT?

Prior to 2024, I only discussed making x-y plots in an advanced exercise. This was because, when I composed that section of the course 15 years ago, the documentation for TGraph and TGraphErrors was poor.

While preparing an x-y plot for the 2024 presentation (it’s on the last slide of this PDF file if you’re interested), I discovered that someone on the ROOT team had worked hard. TGraph and TGraphErrors are now no more difficult to use than Python’s matplotlib.

I only discovered this two days before I had to teach the tutorial!

For the 2025 class, I’ll revise this page with some examples, along with comparisons to matplotlib so you can decide which you’d prefer to use.

Until then, if you’re interested in making x-y plots in ROOT:

x-y plot from graph.C

Figure 67: The x-y plot from graph.C.

There’ll be more next year!