This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib | |
import matplotlib.pyplot as plt | |
Arc = matplotlib.patches.Arc | |
def halfangle(a, b): | |
"Gets the middle angle between a and b, when increasing from a to b" | |
if b < a: | |
b += 360 | |
return (a + b)/2 % 360 |