Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change back to original matplotlib backend #640

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions umi_tools/whitelist_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import itertools
import collections
import matplotlib
# change back to original user params after plotting
_rcParams_orig = matplotlib.rcParams.copy()
import copy
import regex

# require to run on systems with no X11
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.lines as mlines

Expand Down Expand Up @@ -100,6 +100,9 @@ def getKneeEstimateDensity(cell_barcode_counts,

if plotfile_prefix:

# require to run on systems with no X11
IanSudbery marked this conversation as resolved.
Show resolved Hide resolved
matplotlib.use('Agg')

# colour-blind friendly colours - https://gist.github.com/thriveth/8560036
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a',
'#f781bf', '#a65628', '#984ea3',
Expand Down Expand Up @@ -244,6 +247,8 @@ def getKneeEstimateDensity(cell_barcode_counts,

outf.write("%s\t%s\n" % (local_mins_count, threshold_type))

matplotlib.rcParams.update(_rcParams_orig)

return final_barcodes


Expand Down
Loading