Skip to content
Advertisement

Tag: bar-chart

How to prevent x-axis labels from overlapping

I’m generating a bar-chart with matplotlib. It all works well but I can’t figure out how to prevent the labels of the x-axis from overlapping each other. Here an example: Here is some sample SQL for a postgres 9.1 database: And this is my python-script: Is there a way how I can prevent the labels from overlapping each other? Ideally

Advertisement