matplotlib - Drawing histogram with too many variables using barchart in python -


i'm trying draw histogram x calculate before draw histogram have sort them. problem x long(like 2 million variables). there method reduce time of drawing histogram. think drawing many bars takes time how can reduce number of them without losing shape?

x = somefunctioncreatingalistofvariables() x.sort(reverse = true) plt.bar(left = np.arange(len(x)), height = x, color='b') 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -