In every application, graphics play a major role in making it more user-friendly. Graphics make concepts easier to understand. In this chapter, we will be covering the following topics:
- Displaying mouse coordinates
- Displaying coordinates where the mouse button is clicked and released
- Displaying a point where the mouse button is clicked
- Drawing a line between two mouse clicks
- Drawing lines of different types
- Drawing a circle of a desired size
- Drawing a rectangle between two mouse clicks
- Drawing text in a desired font and size
- Creating a toolbar that shows different graphics tools
- Plotting a line using Matplotlib
- Plotting a bar using Matplotlib