dexplo / bar_chart_race

Create animated bar chart races in Python with matplotlib
MIT License
1.35k stars 351 forks source link

How do I force a video to be a fixed width? #60

Open Stelvey opened 2 years ago

Stelvey commented 2 years ago

I presume that bar_chart_race changes width of a video based on labels length. I have a huge DataFrame and some labels don't even show up on the chart and what it does is create a big empty space before labels. How do I set a fixed width for the video? I am pretty sure the video in official docs shows exactly what I want to accomplish --- labels don't change the width -> they just go out of screen if too long

amrvx4 commented 1 year ago

figsize=(10, 6) I was able to keep same video width and height with above code.