Skip to content

Commit

Permalink
+ fontsize option
Browse files Browse the repository at this point in the history
  • Loading branch information
Pombert-JF committed Apr 29, 2024
1 parent 96fa107 commit 047dca8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Plots/paf_to_dotplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
of a monochrome plot
--wdis Horizontal distance (width) between subplots [Default: 0.05]
--hdis Vertical distance (height) between subplots [Default: 0.1]
--fontsize Font size [Default: 8]
--threads Number of threads to use [Default: 16]
"""

Expand All @@ -70,6 +71,7 @@
cmd.add_argument("-n", "--noticks", action='store_true')
cmd.add_argument("--wdis", default=0.05)
cmd.add_argument("--hdis", default=0.1)
cmd.add_argument("--fontsize", default=8)
cmd.add_argument("--threads", default=16)
args = cmd.parse_args()

Expand All @@ -85,6 +87,7 @@
noticks = args.noticks
wdis = args.wdis
hdis = args.hdis
fontsize = int(args.fontsize)
threads = int(args.threads)

################################################################################
Expand Down Expand Up @@ -224,7 +227,7 @@ def dotplot(paf):

# Setting default image to widescreen by default
plt.rcParams["figure.figsize"] = (width,height)
plt.rcParams.update({'font.size': 8})
plt.rcParams.update({'font.size': fontsize})

# color palette
palette = sns.color_palette(color_palette, len(query_len_dict))
Expand Down

0 comments on commit 047dca8

Please sign in to comment.