Skip to content

Commit 568a738

Browse files
authored
FIX: matplotlib builds using LaTeX (#189)
* check paths * check mpl cache dir * use plt.rc * remove tex cache * add latex pacakges to fix matplotlib compat * remove debug * remove debug program * update all workflows with LaTeX * ADD: matplotlib clean cache for TeX * CHECK placement for Tex Cache Clean * remove matplotlib cache clear * add in plt.rc
1 parent 3a8f7da commit 568a738

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

.github/workflows/cache.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
texlive-xetex \
3030
latexmk \
3131
xindy \
32-
dvipng
32+
dvipng \
33+
cm-super
3334
- name: Build HTML
3435
shell: bash -l {0}
3536
run: |

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
texlive-fonts-extra \
2626
texlive-xetex \
2727
latexmk \
28-
xindy
28+
xindy \
29+
dvipng \
30+
cm-super
2931
- name: Display Conda Environment Versions
3032
shell: bash -l {0}
3133
run: conda list

.github/workflows/execution.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ jobs:
1919
with:
2020
auto-update-conda: true
2121
python-version: ${{ matrix.python-version }}
22+
- name: Install latex dependencies
23+
run: |
24+
sudo apt-get -qq update
25+
sudo apt-get install -y \
26+
texlive-latex-recommended \
27+
texlive-latex-extra \
28+
texlive-fonts-recommended \
29+
texlive-fonts-extra \
30+
texlive-xetex \
31+
latexmk \
32+
xindy \
33+
dvipng \
34+
cm-super
2235
- name: Install Anaconda + Dependencies
2336
shell: bash -l {0}
2437
run: |

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
texlive-fonts-extra \
3030
texlive-xetex \
3131
latexmk \
32-
xindy
32+
xindy \
33+
dvipng \
34+
cm-super
3335
- name: Display Conda Environment Versions
3436
shell: bash -l {0}
3537
run: conda list

lectures/five_preferences.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ from numba import njit
7676
%matplotlib inline
7777
%config InlineBackend.figure_format='retina'
7878
79-
rc('text', usetex=True)
79+
plt.rc('text', usetex=True)
8080
8181
label_size = 20
8282
label_tick_size = 18

0 commit comments

Comments
 (0)