mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
docs: check for latex availability added to examples.
This commit is contained in:
parent
0d434372e8
commit
1054f749e9
6 changed files with 24 additions and 13 deletions
|
@ -7,6 +7,7 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import matplotlib\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"import pyerrors as pe"
|
||||
]
|
||||
|
@ -18,7 +19,9 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"plt.style.use('./base_style.mplstyle'); plt.rc('text', usetex=True)"
|
||||
"plt.style.use('./base_style.mplstyle')\n",
|
||||
"usetex = matplotlib.checkdep_usetex(True)\n",
|
||||
"plt.rc('text', usetex=usetex)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -305,7 +308,7 @@
|
|||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue