-
Notifications
You must be signed in to change notification settings - Fork 0
AlbertVos/Figure
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Put data in x list and y list for each run and plot the data. You can plot multiple data sets with different colors in the same window to compare them. With each plot you specify the xmin, xmax, ymin and ymax values which can be different or the same for different plots. from figure import Figure # E.g. extend unit5_14 of cs373 in run(..) def run(..) for ..... ..... x.append(myrobot.x) y.append(myrobot.y) f = Figure() x = [] y = [] run(0.2, 3.0, 0.004) # plot data in red with xmin=0,xmax=100,ymin=-1,ymax=1 f.plot(x, y, [0, 100, -1, 1], 'red') # do another run, plot in the same window x = [] y = [] run(0.2, 3.0, 0.01) # plot data in blue with xmin=0,xmax=100,ymin=-1,ymax=1 f.plot(x, y, [0, 100, -1, 1], 'blue')
About
A python tool to show graphs
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published