plot-io 0.12.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plot_io/__init__.py +73 -0
- plot_io/_methods.py +1691 -0
- plot_io/_native/__init__.py +199 -0
- plot_io/_native/__main__.py +197 -0
- plot_io/_native/_api.py +457 -0
- plot_io/_native/bin/windows-x86_64.dll +0 -0
- plot_io/_native/kernels.py +335 -0
- plot_io/_native/manifest.json +49 -0
- plot_io/axis.py +1347 -0
- plot_io/boxes.py +1156 -0
- plot_io/canvas.py +389 -0
- plot_io/color/__init__.py +3 -0
- plot_io/color/data.py +1646 -0
- plot_io/color/maps.py +922 -0
- plot_io/color/values.py +295 -0
- plot_io/color/variants.py +1246 -0
- plot_io/colorbar.py +1426 -0
- plot_io/columns.py +614 -0
- plot_io/decorations.py +920 -0
- plot_io/defaults.py +809 -0
- plot_io/density.py +113 -0
- plot_io/ext.py +68 -0
- plot_io/facets.py +240 -0
- plot_io/figure.py +788 -0
- plot_io/formatters.py +97 -0
- plot_io/genome/__init__.py +17 -0
- plot_io/genome/adapters.py +356 -0
- plot_io/genome/combine.py +123 -0
- plot_io/genome/contacts.py +508 -0
- plot_io/genome/intervals.py +750 -0
- plot_io/genome/lanes.py +191 -0
- plot_io/genome/layout.py +184 -0
- plot_io/genome/links.py +364 -0
- plot_io/genome/pack.py +27 -0
- plot_io/genome/readers.py +145 -0
- plot_io/genome/regions.py +228 -0
- plot_io/genome/scale.py +349 -0
- plot_io/genome/series.py +344 -0
- plot_io/genome/signal.py +621 -0
- plot_io/genome/sites.py +782 -0
- plot_io/genome/sources.py +459 -0
- plot_io/genome/testing.py +161 -0
- plot_io/geometry.py +289 -0
- plot_io/groups.py +308 -0
- plot_io/guides.py +503 -0
- plot_io/helpers/__init__.py +17 -0
- plot_io/helpers/clustermap.py +202 -0
- plot_io/helpers/dendrogram.py +172 -0
- plot_io/helpers/grids.py +304 -0
- plot_io/helpers/qq.py +334 -0
- plot_io/helpers/raincloud.py +249 -0
- plot_io/helpers/tree.py +214 -0
- plot_io/helpers/volcano.py +505 -0
- plot_io/hints.py +125 -0
- plot_io/kernels.py +740 -0
- plot_io/labels.py +566 -0
- plot_io/layers/__init__.py +100 -0
- plot_io/layers/base.py +630 -0
- plot_io/layers/context.py +87 -0
- plot_io/layers/core.py +446 -0
- plot_io/layers/geoms.py +1362 -0
- plot_io/layers/grammar.py +586 -0
- plot_io/layers/paint.py +614 -0
- plot_io/layers/pipeline.py +170 -0
- plot_io/layers/positions.py +431 -0
- plot_io/layers/stats.py +1088 -0
- plot_io/layout.py +1381 -0
- plot_io/legend.py +605 -0
- plot_io/levels.py +509 -0
- plot_io/limits.py +124 -0
- plot_io/lines.py +42 -0
- plot_io/mapped.py +522 -0
- plot_io/markers.py +110 -0
- plot_io/markup.py +128 -0
- plot_io/numbers.py +354 -0
- plot_io/occupancy.py +295 -0
- plot_io/plot.py +597 -0
- plot_io/presets/__init__.py +51 -0
- plot_io/presets/_util.py +153 -0
- plot_io/presets/area.py +145 -0
- plot_io/presets/bar.py +261 -0
- plot_io/presets/box.py +400 -0
- plot_io/presets/catpoints.py +177 -0
- plot_io/presets/contour.py +353 -0
- plot_io/presets/curves.py +30 -0
- plot_io/presets/dots.py +355 -0
- plot_io/presets/ecdf.py +97 -0
- plot_io/presets/errorbar.py +106 -0
- plot_io/presets/errors.py +296 -0
- plot_io/presets/fill.py +74 -0
- plot_io/presets/heatmap.py +322 -0
- plot_io/presets/hexbin.py +198 -0
- plot_io/presets/hist.py +391 -0
- plot_io/presets/hist2d.py +87 -0
- plot_io/presets/kde.py +162 -0
- plot_io/presets/kde2d.py +147 -0
- plot_io/presets/line.py +143 -0
- plot_io/presets/pie.py +502 -0
- plot_io/presets/regression.py +115 -0
- plot_io/presets/scatter.py +194 -0
- plot_io/presets/stem.py +100 -0
- plot_io/presets/violin.py +323 -0
- plot_io/py.typed +0 -0
- plot_io/registry.py +82 -0
- plot_io/render.py +480 -0
- plot_io/rows.py +491 -0
- plot_io/scales.py +103 -0
- plot_io/seams.py +138 -0
- plot_io/settings.py +807 -0
- plot_io/shapes.py +66 -0
- plot_io/sharing.py +232 -0
- plot_io/sizemaps.py +97 -0
- plot_io/spec.py +240 -0
- plot_io/states.py +216 -0
- plot_io/styles/__init__.py +307 -0
- plot_io/styles/library.py +397 -0
- plot_io/tables.py +138 -0
- plot_io/text.py +412 -0
- plot_io/ticks.py +400 -0
- plot_io/times.py +287 -0
- plot_io/titles.py +225 -0
- plot_io/transform.py +114 -0
- plot_io/types.py +13604 -0
- plot_io/units.py +768 -0
- plot_io/validators.py +1029 -0
- plot_io/values.py +190 -0
- plot_io-0.12.0.dist-info/METADATA +215 -0
- plot_io-0.12.0.dist-info/RECORD +130 -0
- plot_io-0.12.0.dist-info/WHEEL +4 -0
- plot_io-0.12.0.dist-info/licenses/LICENSE +28 -0
plot_io/__init__.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""plot_io: plots for PDF, EPS, SVG, PNG, JPEG, JPEG XL and AVIF, drawn with vec_io.
|
|
2
|
+
|
|
3
|
+
Basic usage::
|
|
4
|
+
|
|
5
|
+
import plot_io as plt
|
|
6
|
+
|
|
7
|
+
s = plt.Scatter([1, 2, 3], [2, 4, 3], color="C1")
|
|
8
|
+
s.plot.x_axis(label="Time (s)")
|
|
9
|
+
s.plot.save("scatter.pdf")
|
|
10
|
+
|
|
11
|
+
The names below are the public API; the submodules (``plot_io.genome``,
|
|
12
|
+
``plot_io.styles``, …) are documented in docs/api.md, and the others are internal.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from vec_io import Simplify, Span
|
|
16
|
+
|
|
17
|
+
from . import registry
|
|
18
|
+
from .axis import Axis
|
|
19
|
+
from .color.maps import ColorMap
|
|
20
|
+
from .colorbar import Colorbar
|
|
21
|
+
from .defaults import DEFAULTS
|
|
22
|
+
from .density import Density
|
|
23
|
+
from .facets import facet
|
|
24
|
+
from .figure import Figure
|
|
25
|
+
# the plot types register before the genome series (the order of the generated methods)
|
|
26
|
+
from .presets import (Area, Bar, Box, Contour, Dots, Ecdf, Errorbar, Errors, Fill, Heatmap,
|
|
27
|
+
Hexbin, Hist, Hist2d, Kde, Kde2d, Line, Pie, Regression, Scatter, Stem,
|
|
28
|
+
Strip, Swarm, Violin, group_summary)
|
|
29
|
+
from .genome import (Bed, BigWig, Genes, Gtf, HiC, Links, SignalMatrix, SiteHeatmap,
|
|
30
|
+
SiteProfile, Track, Tracks)
|
|
31
|
+
from .layers import Series
|
|
32
|
+
from .mapped import ColorAxis, SizeAxis
|
|
33
|
+
from .plot import Legend, Plot, Title
|
|
34
|
+
from .sizemaps import SizeMap
|
|
35
|
+
from .styles import set_style, use_style
|
|
36
|
+
from .ticks import every
|
|
37
|
+
from .units import Expr, SettingError, calc, var
|
|
38
|
+
# the helpers register after every built-in type
|
|
39
|
+
from .helpers import (QQ, Dendrogram, Ma, Manhattan, Raincloud, Tree, Volcano, clustermap,
|
|
40
|
+
joint, linkage, pairs)
|
|
41
|
+
|
|
42
|
+
__all__ = [
|
|
43
|
+
# figures and plots
|
|
44
|
+
"Figure", "Plot", "Tracks", "Track", "SignalMatrix", "facet", "joint", "pairs",
|
|
45
|
+
"clustermap",
|
|
46
|
+
# plot types
|
|
47
|
+
"Scatter", "Line", "Fill", "Area", "Bar", "Hist", "Kde", "Kde2d", "Ecdf", "Box",
|
|
48
|
+
"Violin", "Strip", "Swarm", "Errorbar", "Stem", "Regression", "Heatmap", "Hist2d",
|
|
49
|
+
"Hexbin", "Contour", "Pie", "Dots", "BigWig", "Bed", "Genes", "Gtf", "HiC", "Links",
|
|
50
|
+
"SiteHeatmap", "SiteProfile",
|
|
51
|
+
# guides, for annotations and isinstance: made by their plots and figures
|
|
52
|
+
"Axis", "Legend", "Colorbar", "Title",
|
|
53
|
+
# helpers: clustering trees, dendrograms, QQ plots, rainclouds, volcano, MA, Manhattan
|
|
54
|
+
"linkage", "Tree", "Dendrogram", "QQ", "Raincloud", "Volcano", "Ma", "Manhattan",
|
|
55
|
+
# values: axes of mapped values, color maps, densities, errors, rich text
|
|
56
|
+
"ColorAxis", "SizeAxis", "ColorMap", "SizeMap", "Density", "Errors",
|
|
57
|
+
"Span", "Simplify", "group_summary", "every",
|
|
58
|
+
# values written with var() and calc(): typed as Expr
|
|
59
|
+
"Expr", "var", "calc",
|
|
60
|
+
# extension: the registries and the base of plot types
|
|
61
|
+
"registry", "Series",
|
|
62
|
+
# styles and defaults
|
|
63
|
+
"set_style", "use_style", "DEFAULTS",
|
|
64
|
+
# errors
|
|
65
|
+
"SettingError",
|
|
66
|
+
"__version__",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
__version__ = "0.12.0"
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def __dir__() -> list[str]:
|
|
73
|
+
return list(__all__)
|