Book description
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.Table of contents
- Cover
- Front Matter
- 1. Python Essential Commands and Functions
- 2. Graphics in Two Dimensions
- 3. Graphics in Three Dimensions
- 4. Perspective
- 5. Intersections
- 6. Hidden Line Removal
- 7. Shading
- 8. 2D Data Plotting
- 9. 3D Data Plotting
- 10. Demonstration Saturn
- 11. Electrons, Photons and Hydrogen
- 12. Demonstration: The Sun
- 13. Climate Change
- 14. Population Dynamics
- 15. Resource Management
- 16. Ecological Diversity and Butterflies
- Back Matter
Product information
- Title: Python Graphics: A Reference for Creating 2D and 3D Images
- Author(s):
- Release date: December 2023
- Publisher(s): Apress
- ISBN: 9781484296608
You might also like
book
Mathematics for Game Programming and Computer Graphics
A comprehensive guide to learning fundamental 3D mathematical principles used in games and computer graphics by …
book
A Handbook of Mathematical Models with Python
Master the art of mathematical modeling through practical examples, use cases, and machine learning techniques Key …
book
Applying Math with Python - Second Edition
Discover easy-to-follow solutions and techniques to help you to implement applied mathematical concepts such as probability, …
book
Python Playground, 2nd Edition
Harness the power of Python as you turn code into tangible creations with Python Playground, a …