CHAPTER 17

GRAPHICS

CHAPTER OUTLINE

17.1 2D Graphics

17.2 3D Graphics

17.3 Animation – Bouncing Ball

So far, we have developed programs, which produce output in the form of text content. However, there is a famous saying, ‘A picture is worth a thousand words.’ In this chapter, we shall study, how to visualize the input data and the results produced by a program, in the form of graphs, pie-charts, histograms, and 3D plots. We will also see the effectiveness of animation in communication. Python supports 2D and 3D graphics, and animations in the form of various packages and libraries like Matplotlib, PyQtGraph (Scientific Graphics and GUI Library for Python), VisPy (2D/3D visualization library), OpenGL (library for 2D and 3D graphics), turtle, ...

Get Python Programming: A modular approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.