Created
October 24, 2013 12:03
-
-
Save kidpixo/7136028 to your computer and use it in GitHub Desktop.
my_xkdc_plot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.array([2.,200.,2000.,20000.,200000.,2000000.,20000000.,24973866.]) | |
y = np.array([11213.989,11419.187,13149.363,73087.506,231421.730,208442.174,211770.931,207008.041]) | |
plt.xkcd() # Yes... | |
plt.plot(np.log(x)/np.log(10), y/(1000*60), 'r', np.log(x)/np.log(10), y/(1000*60), 'ro') | |
# plt.plot(x, y/(1000*60), 'r', x, y/(1000*60), 'bo') | |
plt.title('Query exectution time vs. objects number') | |
plt.xlabel('Log(objects number)') | |
plt.ylabel('Quey execution time (min)') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment