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
Post a Comment