plot-io 0.12.0__py3-none-macosx_13_0_arm64.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.
Files changed (130) hide show
  1. plot_io/__init__.py +73 -0
  2. plot_io/_methods.py +1691 -0
  3. plot_io/_native/__init__.py +199 -0
  4. plot_io/_native/__main__.py +197 -0
  5. plot_io/_native/_api.py +457 -0
  6. plot_io/_native/bin/macos-arm64.dylib +0 -0
  7. plot_io/_native/kernels.py +335 -0
  8. plot_io/_native/manifest.json +49 -0
  9. plot_io/axis.py +1347 -0
  10. plot_io/boxes.py +1156 -0
  11. plot_io/canvas.py +389 -0
  12. plot_io/color/__init__.py +3 -0
  13. plot_io/color/data.py +1646 -0
  14. plot_io/color/maps.py +922 -0
  15. plot_io/color/values.py +295 -0
  16. plot_io/color/variants.py +1246 -0
  17. plot_io/colorbar.py +1426 -0
  18. plot_io/columns.py +614 -0
  19. plot_io/decorations.py +920 -0
  20. plot_io/defaults.py +809 -0
  21. plot_io/density.py +113 -0
  22. plot_io/ext.py +68 -0
  23. plot_io/facets.py +240 -0
  24. plot_io/figure.py +788 -0
  25. plot_io/formatters.py +97 -0
  26. plot_io/genome/__init__.py +17 -0
  27. plot_io/genome/adapters.py +356 -0
  28. plot_io/genome/combine.py +123 -0
  29. plot_io/genome/contacts.py +508 -0
  30. plot_io/genome/intervals.py +750 -0
  31. plot_io/genome/lanes.py +191 -0
  32. plot_io/genome/layout.py +184 -0
  33. plot_io/genome/links.py +364 -0
  34. plot_io/genome/pack.py +27 -0
  35. plot_io/genome/readers.py +145 -0
  36. plot_io/genome/regions.py +228 -0
  37. plot_io/genome/scale.py +349 -0
  38. plot_io/genome/series.py +344 -0
  39. plot_io/genome/signal.py +621 -0
  40. plot_io/genome/sites.py +782 -0
  41. plot_io/genome/sources.py +459 -0
  42. plot_io/genome/testing.py +161 -0
  43. plot_io/geometry.py +289 -0
  44. plot_io/groups.py +308 -0
  45. plot_io/guides.py +503 -0
  46. plot_io/helpers/__init__.py +17 -0
  47. plot_io/helpers/clustermap.py +202 -0
  48. plot_io/helpers/dendrogram.py +172 -0
  49. plot_io/helpers/grids.py +304 -0
  50. plot_io/helpers/qq.py +334 -0
  51. plot_io/helpers/raincloud.py +249 -0
  52. plot_io/helpers/tree.py +214 -0
  53. plot_io/helpers/volcano.py +505 -0
  54. plot_io/hints.py +125 -0
  55. plot_io/kernels.py +740 -0
  56. plot_io/labels.py +566 -0
  57. plot_io/layers/__init__.py +100 -0
  58. plot_io/layers/base.py +630 -0
  59. plot_io/layers/context.py +87 -0
  60. plot_io/layers/core.py +446 -0
  61. plot_io/layers/geoms.py +1362 -0
  62. plot_io/layers/grammar.py +586 -0
  63. plot_io/layers/paint.py +614 -0
  64. plot_io/layers/pipeline.py +170 -0
  65. plot_io/layers/positions.py +431 -0
  66. plot_io/layers/stats.py +1088 -0
  67. plot_io/layout.py +1381 -0
  68. plot_io/legend.py +605 -0
  69. plot_io/levels.py +509 -0
  70. plot_io/limits.py +124 -0
  71. plot_io/lines.py +42 -0
  72. plot_io/mapped.py +522 -0
  73. plot_io/markers.py +110 -0
  74. plot_io/markup.py +128 -0
  75. plot_io/numbers.py +354 -0
  76. plot_io/occupancy.py +295 -0
  77. plot_io/plot.py +597 -0
  78. plot_io/presets/__init__.py +51 -0
  79. plot_io/presets/_util.py +153 -0
  80. plot_io/presets/area.py +145 -0
  81. plot_io/presets/bar.py +261 -0
  82. plot_io/presets/box.py +400 -0
  83. plot_io/presets/catpoints.py +177 -0
  84. plot_io/presets/contour.py +353 -0
  85. plot_io/presets/curves.py +30 -0
  86. plot_io/presets/dots.py +355 -0
  87. plot_io/presets/ecdf.py +97 -0
  88. plot_io/presets/errorbar.py +106 -0
  89. plot_io/presets/errors.py +296 -0
  90. plot_io/presets/fill.py +74 -0
  91. plot_io/presets/heatmap.py +322 -0
  92. plot_io/presets/hexbin.py +198 -0
  93. plot_io/presets/hist.py +391 -0
  94. plot_io/presets/hist2d.py +87 -0
  95. plot_io/presets/kde.py +162 -0
  96. plot_io/presets/kde2d.py +147 -0
  97. plot_io/presets/line.py +143 -0
  98. plot_io/presets/pie.py +502 -0
  99. plot_io/presets/regression.py +115 -0
  100. plot_io/presets/scatter.py +194 -0
  101. plot_io/presets/stem.py +100 -0
  102. plot_io/presets/violin.py +323 -0
  103. plot_io/py.typed +0 -0
  104. plot_io/registry.py +82 -0
  105. plot_io/render.py +480 -0
  106. plot_io/rows.py +491 -0
  107. plot_io/scales.py +103 -0
  108. plot_io/seams.py +138 -0
  109. plot_io/settings.py +807 -0
  110. plot_io/shapes.py +66 -0
  111. plot_io/sharing.py +232 -0
  112. plot_io/sizemaps.py +97 -0
  113. plot_io/spec.py +240 -0
  114. plot_io/states.py +216 -0
  115. plot_io/styles/__init__.py +307 -0
  116. plot_io/styles/library.py +397 -0
  117. plot_io/tables.py +138 -0
  118. plot_io/text.py +412 -0
  119. plot_io/ticks.py +400 -0
  120. plot_io/times.py +287 -0
  121. plot_io/titles.py +225 -0
  122. plot_io/transform.py +114 -0
  123. plot_io/types.py +13604 -0
  124. plot_io/units.py +768 -0
  125. plot_io/validators.py +1029 -0
  126. plot_io/values.py +190 -0
  127. plot_io-0.12.0.dist-info/METADATA +215 -0
  128. plot_io-0.12.0.dist-info/RECORD +130 -0
  129. plot_io-0.12.0.dist-info/WHEEL +4 -0
  130. 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__)