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 -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -