aboutsummaryrefslogtreecommitdiff
path: root/fullswof-utils
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2022-02-10 16:30:06 +0000
committerPaul Garlick <pgarlick@tourbillion-technology.com>2022-02-10 16:30:06 +0000
commit9d53d8196ecb182ad6c2338c7afa84fc41071574 (patch)
tree3501485b9e94119f9d99159da906723fcd6fb34e /fullswof-utils
parent6f4030bd3508a092f80edc2c056216886d9ce7bb (diff)
downloadfullSWOF-utils-9d53d8196ecb182ad6c2338c7afa84fc41071574.tar.gz
boundary_profile.py: Specify line colour for each boundary.
* fullswof-utils/boundary_profile.py: Add lineColour variable.
Diffstat (limited to 'fullswof-utils')
-rwxr-xr-xfullswof-utils/boundary_profile.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/fullswof-utils/boundary_profile.py b/fullswof-utils/boundary_profile.py
index 091db8a..22bde1d 100755
--- a/fullswof-utils/boundary_profile.py
+++ b/fullswof-utils/boundary_profile.py
@@ -14,17 +14,21 @@ args = parser.parse_args()
if args.location == 'top':
inputFilename = "top_boundary.txt"
+ lineColour = "tab:blue"
elif args.location == 'bottom':
inputFilename = "bottom_boundary.txt"
+ lineColour = "tab:green"
elif args.location == 'left':
inputFilename = "left_boundary.txt"
+ lineColour = "tab:red"
elif args.location == 'right':
inputFilename = "right_boundary.txt"
+ lineColour = "tab:orange"
def detach_display():
x, y, z = np.loadtxt(inputFilename, delimiter=' ', unpack=True)
fig, ax = plt.subplots()
- plt.plot(x,z, label='elevation')
+ plt.plot(x,z, color=lineColour, label='elevation')
plt.xlabel('x / m')
plt.ylabel('z / m')
ax.yaxis.set_minor_locator(MultipleLocator(0.2))