diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-06 00:58:38 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-06 00:58:38 +0200 |
commit | e1a666abe086d6ef28a8fe5bdba8921a25377fd4 (patch) | |
tree | 24426930837c3a1f96e8b6af693b0bc7759378e1 | |
parent | m doc (diff) | |
download | blueshift-e1a666abe086d6ef28a8fe5bdba8921a25377fd4.tar.gz blueshift-e1a666abe086d6ef28a8fe5bdba8921a25377fd4.tar.bz2 blueshift-e1a666abe086d6ef28a8fe5bdba8921a25377fd4.tar.xz |
add more graphs
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | test/cubic_interpolation | 8 | ||||
-rwxr-xr-x | test/linear_interpolation | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/test/cubic_interpolation b/test/cubic_interpolation index 537102c..83b34b0 100755 --- a/test/cubic_interpolation +++ b/test/cubic_interpolation @@ -12,7 +12,9 @@ print('Loading matplotlib.pyplot...') import matplotlib.pyplot as plot print('Done loading matplotlib.pyplot') +# Modules used for input data generation from math import * +from random import * def main(): @@ -20,8 +22,10 @@ def main(): fig = plot.figure() # Add graphs - add_graph(fig, 211, [i / 15 for i in range(16)]) - add_graph(fig, 212, [sin(6 * i / 15) for i in range(16)]) + add_graph(fig, 221, [i / 15 for i in range(16)]) + add_graph(fig, 222, [sin(6 * i / 15) for i in range(16)]) + add_graph(fig, 223, [(i / 15) ** 0.5 for i in range(16)]) + add_graph(fig, 224, [random() for i in range(16)]) # Show graphs plot.show() diff --git a/test/linear_interpolation b/test/linear_interpolation index 140616c..7bca841 100755 --- a/test/linear_interpolation +++ b/test/linear_interpolation @@ -14,7 +14,9 @@ print('Loading matplotlib.pyplot...') import matplotlib.pyplot as plot print('Done loading matplotlib.pyplot') +# Modules used for input data generation from math import * +from random import * def main(): @@ -22,8 +24,10 @@ def main(): fig = plot.figure() # Add graphs - add_graph(fig, 211, [i / 15 for i in range(16)]) - add_graph(fig, 212, [sin(6 * i / 15) for i in range(16)]) + add_graph(fig, 221, [i / 15 for i in range(16)]) + add_graph(fig, 222, [sin(6 * i / 15) for i in range(16)]) + add_graph(fig, 223, [(i / 15) ** 0.5 for i in range(16)]) + add_graph(fig, 224, [random() for i in range(16)]) # Show graphs plot.show() |