Skip to content

Commit

Permalink
Deprecate graph.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Apr 28, 2024
1 parent be04faf commit 3022cca
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 95 deletions.
4 changes: 1 addition & 3 deletions jcvi/graphics/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,12 @@ def setup_theme(
usetex: bool = True,
):
try:
import seaborn as sns

extra_rc = {
"lines.linewidth": 1,
"lines.markeredgewidth": 1,
"patch.edgecolor": "k",
}
sns.set(context=context, style=style, palette=palette, rc=extra_rc)
sns.set_theme(context=context, style=style, palette=palette, rc=extra_rc)
except (ImportError, SyntaxError):
pass

Expand Down
92 changes: 0 additions & 92 deletions jcvi/graphics/graph.py

This file was deleted.

32 changes: 32 additions & 0 deletions jcvi/projects/jcvi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

"""
Functions in this script produce figures in the JCVI manuscript.
"""

from ..apps.base import ActionDispatcher, OptionParser, logger


def genomebuild(args):
"""
%prog genomebuild
Plot genome build composite figure.
"""
p = OptionParser(genomebuild.__doc__)
_, args, iopts = p.set_image_options(args, figsize="12x9")


def main():

actions = (
("genomebuild", "Plot genome build composite figure"),
("diversity", "Plot diversity composite figure"),
)
p = ActionDispatcher(actions)
p.dispatch(globals())


if __name__ == "__main__":
main()

0 comments on commit 3022cca

Please sign in to comment.