Troubleshooting Your Program
Explore methods to identify and resolve issues when graphing airfoil shapes with Python. Learn to convert data types properly, handle file parsing errors, and adjust plot settings to accurately visualize normalized airfoil coordinates.
We'll cover the following...
We'll cover the following...
Understanding the issues
You wanted to graph an airfoil, not a giant greater-than sign. Let’s catalog all of the issues:
- The points are not graphed correctly; the points should look like an airfoil
- The x-axis and y-axis are flipped, and the numbers are on top of each other
- The airfoil name did not display
- The background should be white
Matplotlib is supposed to automatically graph (left to right) from negative x to positive x and (down to up) negative y to positive y. Basically, Matplotlib is supposed to graph like a normal graph automatically. ...