Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iris-garden committed Jan 18, 2024
1 parent 1a5f485 commit a25396e
Show file tree
Hide file tree
Showing 13 changed files with 1,603 additions and 2,573 deletions.
1,352 changes: 1,352 additions & 0 deletions hail/python/hail/docs/tutorials/ggplot.ipynb

Large diffs are not rendered by default.

108 changes: 18 additions & 90 deletions hail/python/hail/ggplot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,97 +1,25 @@
from hailtop import is_notebook
from typeguard import install_import_hook

if is_notebook():
from plotly.io import renderers

renderers.default = 'iframe'

from .coord_cartesian import coord_cartesian
from .ggplot import ggplot, GGPlot # noqa F401
from .aes import aes, Aesthetic # noqa F401
from .geoms import (
FigureAttribute, # noqa F401
geom_line,
from .ggplot import (
aes,
extend,
geom_point,
geom_text,
geom_bar,
geom_line,
geom_histogram,
geom_density,
geom_func,
geom_hline,
geom_vline,
geom_tile,
geom_col,
geom_area,
geom_ribbon,
)
from .labels import ggtitle, xlab, ylab, labs
from .scale import (
scale_x_continuous,
scale_y_continuous,
scale_x_discrete,
scale_y_discrete,
scale_x_genomic,
scale_x_log10,
scale_y_log10,
scale_x_reverse,
scale_y_reverse,
scale_color_discrete,
scale_color_hue,
scale_color_identity,
scale_color_manual,
scale_color_continuous,
scale_fill_discrete,
scale_fill_hue,
scale_fill_identity,
scale_fill_continuous,
scale_fill_manual,
scale_shape_manual,
scale_shape_auto,
ggplot,
undo,
show,
)
from .facets import vars, facet_wrap

install_import_hook("hail.ggplot")

__all__ = [
"aes",
"ggplot",
"geom_point",
"geom_line",
"geom_text",
"geom_bar",
"geom_col",
"geom_histogram",
"geom_density",
"geom_hline",
"geom_func",
"geom_vline",
"geom_tile",
"geom_area",
"geom_ribbon",
"ggtitle",
"xlab",
"ylab",
"labs",
"coord_cartesian",
"scale_x_continuous",
"scale_y_continuous",
"scale_x_discrete",
"scale_y_discrete",
"scale_x_genomic",
"scale_x_log10",
"scale_y_log10",
"scale_x_reverse",
"scale_y_reverse",
"scale_color_continuous",
"scale_color_identity",
"scale_color_discrete",
"scale_color_hue",
"scale_color_manual",
"scale_fill_continuous",
"scale_fill_identity",
"scale_fill_discrete",
"scale_fill_hue",
"scale_fill_manual",
"scale_shape_manual",
"scale_shape_auto",
"facet_wrap",
"vars",
aes,
extend,
geom_point,
geom_line,
geom_histogram,
ggplot,
undo,
show,
]
49 changes: 0 additions & 49 deletions hail/python/hail/ggplot/aes.py

This file was deleted.

32 changes: 0 additions & 32 deletions hail/python/hail/ggplot/coord_cartesian.py

This file was deleted.

107 changes: 0 additions & 107 deletions hail/python/hail/ggplot/facets.py

This file was deleted.

Loading

0 comments on commit a25396e

Please sign in to comment.