summaryrefslogtreecommitdiff
path: root/creator.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-21 19:29:54 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-21 19:29:54 -0700
commit7729848607e1ea945a31b89b73f3a3b1c4034977 (patch)
tree7f3b8343631bf313278865f1e78afaa52feeea8d /creator.py
parented394647e3c5101255a1bcbb023e78ed768d30e0 (diff)
plot() class methods revised & improved
Diffstat (limited to 'creator.py')
-rw-r--r--creator.py6
1 files changed, 4 insertions, 2 deletions
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
Copyright 2019--2024 Marius PETER