Skip to content

Commit 736d124

Browse files
author
Mohit Navandar
committed
ggplot args
1 parent bb9756a commit 736d124

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydeeptools/deeptools/plotHeatmap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@
2424
from deeptools.computeMatrixOperations import filterHeatmapValues
2525
import textwrap, re
2626

27-
28-
plt.style.use('ggplot')
29-
3027
debug = 0
3128
old_settings = np.seterr(all='ignore')
3229
plt.ioff()
3330

3431
def parse_arguments(args=None):
3532
parser = argparse.ArgumentParser(
36-
parents=[parserCommon.heatmapperMatrixArgs(),
33+
parents=[parserCommon.heatmapperMatrixArgs(),
3734
parserCommon.heatmapperOutputArgs(mode='heatmap'),
3835
parserCommon.heatmapperOptionalArgs(mode='heatmap')],
3936
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
@@ -679,6 +676,9 @@ def main(args=None):
679676

680677
if args.samplesLabel and len(args.samplesLabel):
681678
hm.matrix.set_sample_labels(args.samplesLabel)
679+
680+
if args.ggplot:
681+
plt.style.use('ggplot')
682682

683683
if args.sortRegions != 'no':
684684
sortUsingSamples = []

0 commit comments

Comments
 (0)