create plot of time as a function of threads
This commit is contained in:
		
							parent
							
								
									2de7ccfb5a
								
							
						
					
					
						commit
						3da90de106
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -1,4 +1,5 @@ | |||
| import os | ||||
| import re | ||||
| import numpy as np | ||||
| import matplotlib.pyplot as plt | ||||
| 
 | ||||
|  | @ -15,7 +16,10 @@ timings = np.array(timings) | |||
| print('This is the data I loaded: threads =', threads, ', timings =',timings) | ||||
| 
 | ||||
| fig, axs = plt.subplots() | ||||
| 
 | ||||
| plt.scatter(threads, timings) | ||||
| plt.xlabel('Number of threads') | ||||
| plt.ylabel('Time (seconds)') | ||||
| #plt.show() | ||||
| # CREATE YOUR PLOT HERE | ||||
| # Remember to label your axis | ||||
| # Feel free to make it pretty | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue