Update sample_app.py

This commit is contained in:
ymlesni 2024-03-29 10:57:24 +01:00
parent 2cf466f5ec
commit 80d592b6ce

View File

@ -20,7 +20,7 @@ def main(numbers_file, multiplier):
numbers. numbers.
""" """
numbers = genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False) numbers = genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False)[:,:-1]
multiplied_numbers = numbers * multiplier multiplied_numbers = numbers * multiplier
plt.figure() plt.figure()
plt.plot(multiplied_numbers) plt.plot(multiplied_numbers)