diff --git a/compas_python_utils/detailed_evolution_plotter/plot_detailed_evolution.py b/compas_python_utils/detailed_evolution_plotter/plot_detailed_evolution.py index a197f8aa1..963ccd5c5 100644 --- a/compas_python_utils/detailed_evolution_plotter/plot_detailed_evolution.py +++ b/compas_python_utils/detailed_evolution_plotter/plot_detailed_evolution.py @@ -5,6 +5,7 @@ ################################################################### import os, sys +import shutil import numpy as np import h5py as h5 import matplotlib.pyplot as plt @@ -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": ":", diff --git a/py_tests/test_plot_detailed_evolution.py b/py_tests/test_plot_detailed_evolution.py index c6ebee8d5..a287cde91 100644 --- a/py_tests/test_plot_detailed_evolution.py +++ b/py_tests/test_plot_detailed_evolution.py @@ -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(