From 7729848607e1ea945a31b89b73f3a3b1c4034977 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Fri, 21 Jun 2019 19:29:54 -0700 Subject: plot() class methods revised & improved --- creator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'creator.py') diff --git a/creator.py b/creator.py index fb6e4e1..1a4ddb7 100644 --- a/creator.py +++ b/creator.py @@ -222,7 +222,7 @@ class Airfoil(Coordinates): return None def plot(self): - '''This function plots the elements passed as arguments.''' + '''This function plots the entire airfoil's geometry.''' # Plot chord x_chord = [0, self.chord] @@ -268,7 +268,9 @@ class Airfoil(Coordinates): plt.ylim(- (1.10 * plot_bound / 2), (1.10 * plot_bound / 2)) plt.gca().set_aspect('equal', adjustable='box') plt.grid(axis='both', linestyle=':', linewidth=1) - plt.show() + plt.draw() + plt.pause(1) + # plt.close() return None -- cgit v1.2.3