Use Python's built-in features to create innovative graphics for data visualization and technical illustrations. This book goes beyond simple commands and libraries to explain how to not only display but also rotate, shade, and edit graphics for any purpose. Starting with the essential Python func
Python Graphics: A Reference for Creating 2D and 3D Images
✍ Scribed by Bernard Korites
- Publisher
- Apress
- Year
- 2023
- Tongue
- English
- Leaves
- 488
- Edition
- 2
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
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
Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Python Essential Commands and Functions
Programming Style
The Plotting Area
Establishing the Size of the Plotting Area
Importing Plotting Commands
Displaying the Plotting Area
The Plotting Grid
Saving a Plot
Grid Color
Tick Marks
Custom Grid Lines
Labelling the Axes
The Plot Title
Colors
Color Mixing
Color Intensity
Overplotting
Background Color
The Plotting Area Shape
How to Correct Shape Distortions
Applying a Scale Factor When Plotting
The Best Way: Scaling the Axes in plt.axis( )
Coordinating Axes
Commonly Used Plotting Commands and Functions
Points and Dots Using scatter( )
Lines Using plot( )
Arrows
Text
Lists, Tuples, and Arrays
arange()
range()
Summary
Chapter 2: Graphics in Two Dimensions
Lines from Dots
Dot Art
Circular Arcs from Dots
Circular Arcs from Line Segments
Circles
Dot Discs
Ellipses
2D Translation
2D Rotation
Summary
Chapter 3: Graphics in Three Dimensions
The Three-Dimensional Coordinate System
Projections onto the Coordinate Planes
Rotation Around the y Direction
Rotation Around the x Direction
Rotation Around the z Direction
Separate Rotations Around the Coordinate Directions
Sequential Rotations Around the Coordinate Directions
Matrix Concatenation
Keyboard Data Entry with Functional Program Structure
Summary
Chapter 4: Perspective
Summary
Chapter 5: Intersections
Line Intersecting a Rectangular Plane
Line Intersecting a Triangular Plane
Line Intersecting a Circle
Line Intersecting a Circular Sector
Line Intersecting a Sphere
Plane Intersecting a Sphere
Summary
Chapter 6: Hidden Line Removal
Box
Pyramid
Planes
Sphere
Summary
Chapter 7: Shading
Shading a Box
Shading a Sphere
Summary
Chapter 8: 2D Data Plotting
Linear Regression
Function Fitting
Splines
Summary
Chapter 9: 3D Data Plotting
3D Surfaces
3D Surface Shading
Summary
Chapter 10: Demonstration Saturn
Saturn
Summary
Chapter 11: Electrons, Photons and Hydrogen
Summary
Chapter 12: Demonstration: The Sun
The Earth-Sun Model
Facts About the Sun
Photons and the Sun
Max Planck’s Black Body Radiation
The Sun’s Total Power Output
Earth’s Irradiance
Summary
Chapter 13: Climate Change
Climate Cooling
Albedo
Sunspots
Aerosols
Volcanoes
Climate Warming
Measuring Climate Data
The Piston Corer
The Global Energy Balance
The Rising Oceans
The Global Climate Model
Summary
Chapter 14: Population Dynamics
Sequential Growth
Plants
Insects
Whales
Summary
Chapter 15: Resource Management
Program LG: Logistic Growth with No Harvesting
Program CHR: Logistic Growth with Constant Rate Harvesting
Summary
Chapter 16: Ecological Diversity and Butterflies
Summary
Appendix A
Appendix B
Appendix C
Appendix D
Index
df-Capture.PNG
📜 SIMILAR VOLUMES
<div><p>Use built-in Python features to create innovative graphics for data visualization and technical illustrations. This book goes beyond simple commands and libraries to explain how to not only display but also rotate, shade, and edit graphics for any purpose. </p><p>Starting with the essential
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, e
Zed3D is a document about computer graphics, more particularly real-time 3d graphics. This document should be viewed as a practical reference for a first and perhaps second course in computer graphics.<div class="bb-sep"></div>Издательство: неизвестно<br/>Год: 1996<br/>Страниц: 115<br/>Качество: тек