summaryrefslogtreecommitdiffstats
path: root/test/linear_interpolation
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-06 00:44:00 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-06 00:44:00 +0200
commit2c10dfc7aa259ad0fd5f3eab8879e870e77fd667 (patch)
tree62e844743d811dd3ba987d170cf1cb8fe71c9f88 /test/linear_interpolation
parentadd cubic interpolation test, did not work out too well (diff)
downloadblueshift-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 '')
-rwxr-xr-xtest/linear_interpolation5
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()