Skip to content

Commit

Permalink
add check for latex before setting rcParams
Browse files Browse the repository at this point in the history
  • Loading branch information
avivajpeyi committed Apr 9, 2024
1 parent eeda005 commit 3ecb1a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
###################################################################

import os, sys
import shutil
import numpy as np
import h5py as h5
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -45,7 +46,7 @@ def run_main_plotter(data_path, outdir='.', show=True):

fontparams = {
"font.serif": "Times New Roman",
"text.usetex": "True",
"text.usetex": str(shutil.which("latex") is not None),
"axes.grid": "True",
"grid.color": "gray",
"grid.linestyle": ":",
Expand Down
1 change: 0 additions & 1 deletion py_tests/test_plot_detailed_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from compas_python_utils.detailed_evolution_plotter import plot_detailed_evolution


@pytest.mark.skip(reason="RuntimeError: Failed to process string with tex because latex could not be found")
def test_plotter(example_compas_output_path, capsys, test_archive_dir):
data_path = example_compas_output_path
bse_detailed_out_path = os.path.join(
Expand Down

0 comments on commit 3ecb1a8

Please sign in to comment.