docs: check for latex availability added to examples.

This commit is contained in:
Fabian Joswig 2022-05-20 11:00:52 +01:00
parent 0d434372e8
commit 1054f749e9
6 changed files with 24 additions and 13 deletions

View file

@ -7,6 +7,7 @@
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
"import pyerrors as pe"
]
@ -18,7 +19,8 @@
"outputs": [],
"source": [
"plt.style.use('./base_style.mplstyle')\n",
"plt.rc('text', usetex=True)"
"usetex = matplotlib.checkdep_usetex(True)\n",
"plt.rc('text', usetex=usetex)"
]
},
{