AI engineering glossary · NumPy pandas visualization

What is legend?

Legend: The key on a chart that explains which colour, line style or marker stands for which series or category. It is created from the labels given to each plotted item and should be placed where it does not hide the data.

Level: beginnerTopic: NumPy pandas visualization

Legend: an example

ax.plot(x, y1, label='2025'); ax.plot(x, y2, label='2026'); ax.legend() shows which line is which year.

Related terms

More NumPy pandas visualization terms

Where you learn it

Legend is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.