0

I used the following command to plot my data:

df.plot(x='_time', y='IdCount', kind='bar')

And got this chart:

khrkf

In order to remove the black characters below the graph I would like to hide the label for the x-axis. How could I do this?

Thanks in advance!

Tobitor
  • 1,388
  • 1
  • 23
  • 58
  • 1
    https://stackoverflow.com/questions/20936658/how-to-hide-ticks-label-in-python-but-keep-the-ticks-in-place – BigBen Nov 16 '20 at 15:54
  • While removing the x-ticks will make it look cleaner, it could make sense to plot it with regural line plot, possibly with filled color under the curve. See, for example [this figure](https://matplotlib.org/1.4.3/_images/recipes-4.png) at [matplotlib recipes](https://matplotlib.org/1.4.3/users/recipes.html#fill-between-and-alpha) – Niko Föhr Nov 16 '20 at 16:02
  • But how do I apply this to a pandas dataframe? – Tobitor Nov 16 '20 at 16:20
  • 1
    `ax = df.plot(x='_time', y='IdCount', kind='bar')`... then apply the solution in the linked duplicate to `ax`. – BigBen Nov 16 '20 at 17:02

0 Answers0