From 993aaa2d35fe554ff9897cf9971156e7babf59bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Remseth?= Date: Wed, 16 Aug 2017 20:49:18 +0200 Subject: [PATCH] Make poplot work on osx. --- naca.py | 5 +++++ 1 file changed, 5 insertions(+) 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 = []