Commit 96de6c71 authored by Blaise Li's avatar Blaise Li
Browse files

Fixing tex issues in boxplots.

parent ba8352b8
from functools import reduce
from re import sub
import warnings
......@@ -346,6 +347,10 @@ def plot_counts_distribution(data, xlabel):
def plot_boxplots(data, ylabel):
fig = plt.figure(figsize=(6, 12))
axis = fig.add_subplot(111)
usetex = mpl.rcParams.get("text.usetex", False)
if usetex:
ylabel = sub("_", r"\_", ylabel)
data.columns = [sub("_", "\_", colname) for colname in data.columns]
for label in axis.get_xticklabels():
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment