Skip to content

Commit

Permalink
make default 10x8
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Feb 17, 2025
1 parent be5785c commit 9f8de5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/jcvi/graphics/landscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def draw_depth(
calculate_coverage: bool = False,
roi: Optional[List[Tuple[str, int]]] = None,
left_margin: float = 0.1,
right_margin: float = 0.16,
right_margin: float = 0.15,
):
"""Draw depth plot on the given axes, using data from bed
Expand Down Expand Up @@ -468,7 +468,7 @@ def draw_depth(
ax.set_ylabel("Depth")

set_human_axis(ax)
plt.setp(ax.get_xticklabels() + ax.get_yticklabels(), color="gray", size=10)
plt.setp(ax.get_xticklabels() + ax.get_yticklabels(), color="gray", size=12)
normalize_axes(root)


Expand Down Expand Up @@ -501,7 +501,7 @@ def draw_multi_depth(
calculate_coverage: bool = False,
roi: Optional[str] = None,
left_margin: float = 0.1,
right_margin: float = 0.16,
right_margin: float = 0.15,
):
"""
Draw multiple depth plots on the same canvas.
Expand Down Expand Up @@ -602,9 +602,9 @@ def depth(args):
help="File that contains regions of interest, format: filename, chr:start-end",
)
p.add_argument("--left-margin", default=0.1, type=float, help="Left margin")
p.add_argument("--right-margin", default=0.16, type=float, help="Right margin")
p.add_argument("--right-margin", default=0.15, type=float, help="Right margin")
p.set_outfile("depth.pdf")
opts, args, iopts = p.set_image_options(args, style="dark", figsize="9x9")
opts, args, iopts = p.set_image_options(args, style="dark", figsize="10x8")

if len(args) < 1:
sys.exit(not p.print_help())
Expand Down

0 comments on commit 9f8de5c

Please sign in to comment.