From e1a666abe086d6ef28a8fe5bdba8921a25377fd4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 6 Apr 2014 00:58:38 +0200 Subject: add more graphs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test/cubic_interpolation | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/cubic_interpolation') 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() -- cgit v1.2.3-70-g09d2