dipc-cc / hubbard

Python tools for mean-field Hubbard models
https://dipc-cc.github.io/hubbard/
GNU Lesser General Public License v3.0
21 stars 8 forks source link

Remove `matplotlib.checkdep_usetex` #144

Closed zerothi closed 10 months ago

zerothi commented 10 months ago

See here https://github.com/matplotlib/matplotlib/issues/23244

It was never intended to be public API, I have problems using matplotlib and hubbard (basically it can't work).

sofiasanz commented 10 months ago

Yes, I think we can remove this and use it privately instead of having it in the hubbard library. We only have to copy these lines when we want to plot with tex rendering:

import matplotlib.pyplot as plt
import matplotlib

# Install font rc params
usetex = matplotlib.checkdep_usetex(True)
plt.rc('text', usetex=usetex)
plt.rc('font', family='Dejavu Sans', size=16)
sofiasanz commented 10 months ago

This is now fixed in commit 0eeada2 @zerothi Could you check if it works now?

zerothi commented 10 months ago

It works now! Thanks!