@@ -220,7 +220,7 @@ def mosdepth(args):
220220 logscale = opts .logscale
221221
222222 # Construct a composite figure with N tracks indicated in the groups
223- fig = plt .figure (1 , (iopts .w , iopts .h ))
223+ fig = plt .figure (figsize = (iopts .w , iopts .h ))
224224 root = fig .add_axes ((0 , 0 , 1 , 1 ))
225225
226226 rows = len (groups )
@@ -608,7 +608,7 @@ def depth(args):
608608
609609 bedfiles = args
610610
611- fig = plt .figure (1 , (iopts .w , iopts .h ))
611+ fig = plt .figure (figsize = (iopts .w , iopts .h ))
612612 root = fig .add_axes ((0 , 0 , 1 , 1 ))
613613
614614 npanels = len (bedfiles )
@@ -788,7 +788,7 @@ def composite(args):
788788 plt .rcParams ["xtick.major.size" ] = 0
789789 plt .rcParams ["ytick.major.size" ] = 0
790790
791- fig = plt .figure (1 , (iopts .w , iopts .h ))
791+ fig = plt .figure (figsize = (iopts .w , iopts .h ))
792792 root = fig .add_axes ((0 , 0 , 1 , 1 ))
793793
794794 root .text (0.5 , 0.95 , chr , ha = "center" , color = "darkslategray" )
@@ -1072,7 +1072,7 @@ def heatmap(args):
10721072 stacks = opts .stacks .split ("," )
10731073 heatmaps = opts .heatmaps .split ("," )
10741074
1075- fig = plt .figure (1 , (iopts .w , iopts .h ))
1075+ fig = plt .figure (figsize = (iopts .w , iopts .h ))
10761076 root_extent = (0 , 0 , 1 , 1 )
10771077 root = fig .add_axes (root_extent )
10781078
@@ -1301,7 +1301,7 @@ def stack(args):
13011301
13021302 stacks = opts .stacks .split ("," )
13031303
1304- fig = plt .figure (1 , (iopts .w , iopts .h ))
1304+ fig = plt .figure (figsize = (iopts .w , iopts .h ))
13051305 root_extent = (0 , 0 , 1 , 1 )
13061306 root = fig .add_axes (root_extent )
13071307
0 commit comments