diff --git a/naca.py b/naca.py index cf6bfee..8b37523 100644 --- a/naca.py +++ b/naca.py @@ -40,6 +40,7 @@ from math import pow from math import sqrt + def linspace(start,stop,np): """ Emulate Matlab linspace @@ -262,7 +263,11 @@ def naca(number, n, finite_TE = False, half_cosine_spacing = False): class Display(object): def __init__(self): + import numpy as np + import matplotlib + matplotlib.use('TkAgg') import matplotlib.pyplot as plt + self.plt = plt self.h = [] self.label = []