Hi Sandro,

On 01/08/2016 03:34 PM, Sandro Tosi wrote:
has this change with the latest releases of matplotlib?

No, apparently not:

$ python3 test.py
$ dir ~/.matplotlib
/bin/ls: cannot access /home/nikratio/.matplotlib: No such file or directory
$ printenv | grep MPL
$ apt show python3-matplotlib | grep Version

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Version: 1.5.1~rc1-1


> from the last
reply, it seems that enabling the cache make mpl quick for you, so
that would be the solution for this?

As far as I can tell, matplotlib is slow because it does not use the cache without the user explicitly setting MPLCONFIGDIR. According to the documentation, it should default to ~/.matplotlib if MPLCONFIGDIR is not set.

So yes, explicitly setting MPLCONFIGDIR to some value fixes the slow startup. However, it has the detrimental side-effect that it stops matplotlib from reading its configuration from ~/.config/matplotlib/matplotlibrc, so I would call it a workaround, not a solution.


Best,
-Nikolaus

Reply via email to