Python Graphics: A Reference for Creating 2D and 3D Images, 2nd Edition

  • 5h 18m
  • Bernard Korites
  • Apress
  • 2023

This book shows how to use Python’s built-in graphics primitives - points, lines, and arrows – to create complex graphics for the visualization of two- and three-dimensional objects, data sets, and technical illustrations.

This updated edition provides more detailed explanations where required, especially regarding Python code, and explores scientific applications to topics of contemporary importance. You’ll learn how to create any 2D or 3D object or illustration, as well as how to display images, use color, translate, rotate, shade, add shadows that are cast on other objects, remove hidden lines, plot 2D and 3D data, fit lines and curves to data sets, display points of intersection between 2D and 3D objects, and create digital art. Demonstrations are included which illustrate graphics programming techniques by example, the best way to learn a language.

Also brand new to this edition are demonstrations on how to visualize electron probability clouds around a nucleus, climate change, ecological diversity, population dynamics, and resource management. Python source code, including detailed explanations, is included for all applications, making the book more accessible to novice Python programmers.

After completing this book, you will be able to create compelling graphic images without being limited to functions available in existing Python libraries.

What You Will Learn

  • Create 2D and 3D graphic images
  • Add text and symbols to images
  • Shade 3D objects
  • Display cast shadows
  • Use color for maximum effect
  • View 2D and 3D data sets
  • Fit lines and curves to data sets

Who This Book Is For

Python developers, scientists, engineers, and students who use Python to produce technical illustrations and display and analyze data sets. Assumes familiarity with vectors, matrices, geometry and trigonometry.

About the Author

Dr. Bernard J. Korites holds degree from Tufts and Yale. He has been involved in engineering and scientific applications of computers for his entire career. He has been an educator, consultant, and author of more than ten books on geometric modeling, computer graphics, simulation of physical processes, and the application of computers in science and engineering.

He has been employed by Northrop Aviation, the Woods Hole Oceanographic Institute, Arthur D. Little, and Itek. He has consulted for the US Navy, Aberdeen Proving Grounds, and others. He was Chief Engineer on an expedition to take the longest sediment core sample in the North Atlantic aboard the Canadian Icebreaker John Cabot. He has made numerous dives aboard the submersible Alvin and has spent time aboard the USBCF Albatross. Early in his Career, he developed software to find physical interference between systems of solid objects. This found wide application in the design of power plants, submarines, and other systems with densely packed spaces.

In this Book

  • Introduction
  • Python Essential Commands and Functions
  • Graphics in Two Dimensions
  • Graphics in Three Dimensions
  • Perspective
  • Intersections
  • Hidden Line Removal
  • Shading
  • 2D Data Plotting
  • 3D Data Plotting
  • Demonstration Saturn
  • Electrons, Photons and Hydrogen
  • Demonstration: The Sun
  • Climate Change
  • Population Dynamics
  • Resource Management
  • Ecological Diversity and Butterflies
SHOW MORE
FREE ACCESS