'Visualize Output from collections.Counter() in descending order but get <BarContainer object of 207576 artists>

I am trying to visualize the output from

%matplotlib inline
out = collections.Counter(x)
plt.bar(out.keys(), out.values())

but I get only the following without the plot

<BarContainer object of 207576 artists>

I have around 200,000 keys that I am trying to visualize.

When I print

print(out)

I get something like

Counter({'.ready': 181,
         '.click': 174,
         '.mcheck': 3,
         '.on': 188,
         '.closest': 46,
         '.list': 32,
         '.find': 89,
         '.form': 30,
         '.toggleClass': 71,
         '.val': 101,
         ...})

Any help is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source