2022-04-25 | Blog 012
I made a groovy little plot for a visual of a wind turbine wake. This was posted to twitter, see below
Friday plot. #python #matplotlib #windenergy pic.twitter.com/yWtmnxyEtp
— Rory Morrison (@rory_morrison) April 22, 2022
The plot was made, as usual, with Python and Matplotlib.pyplot. The .py file is available here
Some tricks were performed to make the lines appear in the right order (i.e. not overlap where they shouldn't). Each wake line was actually plotted as many many individual lines with different zorder applied. Each wake line was also plotted as 3 separate lines (outer blue, middle white, inner blue) to be prettier. Finally, the fading effect was achieved with the alpha parameter.
For the GIF, I plotted each frame and then combined with the package imageio. I've had a lot of trouble in the past making GIFs with Matplotlib, this way seems to work so I've stuck with it. I usually edit the GIFs later on with ezgif.com
Rory