Skip to content

Instantly share code, notes, and snippets.

@kidpixo
Created October 24, 2013 12:03
Show Gist options
  • Save kidpixo/7136028 to your computer and use it in GitHub Desktop.
Save kidpixo/7136028 to your computer and use it in GitHub Desktop.
my_xkdc_plot
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