1 """\
2 Fuzzy number plotting module.
3
4 @author: Aaron Mavrinac
5 @organization: University of Windsor
6 @contact: mavrin1@uwindsor.ca
7 @license: GPL-3
8 """
9
11 """\
12 Plots a polygonal fuzzy number.
13
14 @param number: The fuzzy number to plot.
15 @type number: L{PolygonalFuzzyNumber}
16 @param plotter: The external plotting library to use.
17 @type plotter: C{str}
18 """
19 if plotter == 'gnuplot':
20 from Gnuplot import Gnuplot
21 plot = Gnuplot()
22 plot('set data style lines')
23 plot.plot([[p[0], p[1]] for p in number.points])
24 raw_input("Press a key to continue...")
25 else:
26 raise ValueError("invalid plotter specified")
27