- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AINeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++
- ChallengesNew
- For TeachersNew
Matplotlib basics
Draw your first charts with pyplot, add labels, legends, colors and several charts in one figure, and learn the four everyday chart types.
Start the path →- Lesson Matplotlib pyplot Basics: plt.plot and plt.show Plot a graph in Python in a few lines with matplotlib.pyplot: plt.plot, plt.title, plt.xlabel and plt.show.
- Lesson Plot a Line Graph in Python Draw a smooth line graph from NumPy data with plt.subplots and ax.plot.
- Lesson Titles, Labels, and Legends Explain a chart with a title, axis labels, a legend and a grid.
- Lesson Colors, Line Styles, and Markers Change the color, line style, line width and markers of each line.
- Lesson Several Charts in One Figure Arrange a grid of charts with plt.subplots(rows, columns).
- Lesson Bar Charts Compare values across categories with vertical and horizontal bars.
- Lesson Scatter Plots Show the relationship between two variables with ax.scatter.
- Lesson Histograms See how values are distributed by grouping them into bins.
- Lesson Pie Charts Show parts of a whole with ax.pie, percentages and an exploded slice.