JackMcKew / pandas_alive

Create stunning, animated visualisations with Pandas & Matplotlib as easy as calling `df.plot_animated()`
MIT License
582 stars 100 forks source link

Maybe someting wrong with font in my picture #22

Closed lsj8924 closed 3 years ago

lsj8924 commented 3 years ago

the font in my picture is blurred,just like this. It's from the example. example-electricity-generated-australia

JackMcKew commented 3 years ago

Which video writer were you using in this example? In memory PIL?

lsj8924 commented 3 years ago

My workspace is Jupyter. video writer is PIL. But actually I have installed both PIL and ffmpeg. I make my effort to grapple the problem. As you say something wrong with PIL, so I uninstall the PIL. but it does not work again—“Python3.x No module named 'PIL”. So I have to reinstall the Pillow.

JackMcKew commented 3 years ago

Could you please provide:

lsj8924 commented 3 years ago

I solved the problem. The pciture made out from Jupyter is blurred. The command line is OK. What's mroe, the size of Gif format is way larger than MP4. It's better use the MP4 format. Sometimes Gif have to employed, It's better covert MP4 format to gif with ffmpeg, but grnerate directly with pandas_alive. with a transform, the size almost compress to 1/7.

JackMcKew commented 3 years ago

Fantastic to hear that you solved the problem

pandas_alive supports multiple writers for this very reason, the default of using PIL for in memory GIF writing is a matter of convenience.