fix(python): make matplotlib latex preamble a string - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 83cf64c7d715bcc75ebe0f9632ae6f2de0fbbf4f
DIR parent f4f49651fed64c71e6afae6e903790e614590713
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 5 Jul 2026 21:47:43 +0200
fix(python): make matplotlib latex preamble a string
Diffstat:
M python/sphere.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/python/sphere.py b/python/sphere.py
@@ -11,7 +11,7 @@ try:
import matplotlib.collections
matplotlib.rcParams.update({'font.size': 7, 'font.family': 'serif'})
matplotlib.rc('text', usetex=True)
- matplotlib.rcParams['text.latex.preamble'] = [r"\usepackage{amsmath}"]
+ matplotlib.rcParams['text.latex.preamble'] = r"\usepackage{amsmath}"
from matplotlib.font_manager import FontProperties
py_mpl = True
except ImportError: