diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-06 00:44:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-06 00:44:00 +0200 |
commit | 2c10dfc7aa259ad0fd5f3eab8879e870e77fd667 (patch) | |
tree | 62e844743d811dd3ba987d170cf1cb8fe71c9f88 /test/linear_interpolation | |
parent | add cubic interpolation test, did not work out too well (diff) | |
download | blueshift-2c10dfc7aa259ad0fd5f3eab8879e870e77fd667.tar.gz blueshift-2c10dfc7aa259ad0fd5f3eab8879e870e77fd667.tar.bz2 blueshift-2c10dfc7aa259ad0fd5f3eab8879e870e77fd667.tar.xz |
m + fix cubic interpolation
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test/linear_interpolation')
-rwxr-xr-x | test/linear_interpolation | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/linear_interpolation b/test/linear_interpolation index ae622cc..140616c 100755 --- a/test/linear_interpolation +++ b/test/linear_interpolation @@ -14,13 +14,16 @@ print('Loading matplotlib.pyplot...') import matplotlib.pyplot as plot print('Done loading matplotlib.pyplot') +from math import * + def main(): # Create a page with graphs fig = plot.figure() # Add graphs - add_graph(fig, 111, [i / 15 for i in range(16)]) + add_graph(fig, 211, [i / 15 for i in range(16)]) + add_graph(fig, 212, [sin(6 * i / 15) for i in range(16)]) # Show graphs plot.show() |