plot-io 0.13.0__tar.gz → 0.13.1__tar.gz

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 (309) hide show
  1. {plot_io-0.13.0 → plot_io-0.13.1}/PKG-INFO +1 -1
  2. {plot_io-0.13.0 → plot_io-0.13.1}/docs/api.md +33 -33
  3. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/area.md +9 -2
  4. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/bar.md +8 -2
  5. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/bed.md +9 -7
  6. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/bigwig.md +11 -9
  7. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/box.md +9 -4
  8. plot_io-0.13.1/docs/plots/clustermap.md +42 -0
  9. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/contour.md +9 -2
  10. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/dendrogram.md +15 -8
  11. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/dots.md +12 -5
  12. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/ecdf.md +7 -2
  13. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/errorbar.md +7 -0
  14. plot_io-0.13.1/docs/plots/facet.md +40 -0
  15. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/fill.md +10 -3
  16. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/genes.md +6 -0
  17. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/gtf.md +8 -3
  18. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/heatmap.md +10 -4
  19. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/hexbin.md +8 -1
  20. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/hic.md +8 -3
  21. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/hist.md +7 -2
  22. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/hist2d.md +8 -1
  23. plot_io-0.13.1/docs/plots/joint.md +35 -0
  24. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/kde.md +7 -2
  25. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/kde2d.md +7 -0
  26. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/line.md +9 -4
  27. plot_io-0.13.1/docs/plots/linkage.md +35 -0
  28. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/links.md +9 -6
  29. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/ma.md +18 -8
  30. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/manhattan.md +15 -7
  31. plot_io-0.13.1/docs/plots/pairs.md +34 -0
  32. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/pie.md +7 -2
  33. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/qq.md +13 -6
  34. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/raincloud.md +14 -8
  35. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/regression.md +10 -3
  36. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/scatter.md +7 -0
  37. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/site_heatmap.md +12 -11
  38. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/site_profile.md +10 -2
  39. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/stem.md +9 -2
  40. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/strip.md +12 -5
  41. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/swarm.md +8 -1
  42. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/violin.md +9 -3
  43. {plot_io-0.13.0 → plot_io-0.13.1}/docs/plots/volcano.md +13 -5
  44. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/axis.md +11 -1
  45. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/color_axes.md +126 -68
  46. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/colorbars.md +11 -4
  47. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/figure.md +134 -55
  48. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/legends.md +11 -1
  49. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/plot.md +127 -26
  50. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/titles.md +17 -2
  51. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/tracks.md +15 -9
  52. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/__init__.py +1 -1
  53. plot_io-0.13.1/plot_io/_methods.py +10213 -0
  54. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/axis.py +97 -5
  55. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/color/maps.py +104 -59
  56. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/colorbar.py +40 -5
  57. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/density.py +25 -9
  58. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/facets.py +71 -9
  59. plot_io-0.13.1/plot_io/figure.py +1408 -0
  60. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/contacts.py +49 -2
  61. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/intervals.py +19 -9
  62. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/layout.py +13 -9
  63. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/links.py +21 -9
  64. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/series.py +16 -2
  65. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/signal.py +75 -11
  66. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/sites.py +82 -21
  67. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/clustermap.py +19 -12
  68. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/dendrogram.py +24 -10
  69. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/grids.py +24 -17
  70. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/qq.py +14 -7
  71. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/raincloud.py +23 -10
  72. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/tree.py +23 -16
  73. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/volcano.py +49 -19
  74. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/base.py +22 -4
  75. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/mapped.py +13 -1
  76. plot_io-0.13.1/plot_io/plot.py +1216 -0
  77. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/area.py +8 -2
  78. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/bar.py +17 -3
  79. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/box.py +8 -4
  80. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/catpoints.py +42 -6
  81. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/contour.py +8 -2
  82. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/dots.py +72 -10
  83. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/ecdf.py +6 -2
  84. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/errorbar.py +6 -0
  85. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/errors.py +33 -7
  86. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/fill.py +9 -3
  87. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/heatmap.py +9 -4
  88. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/hexbin.py +17 -3
  89. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/hist.py +11 -3
  90. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/hist2d.py +7 -1
  91. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/kde.py +11 -2
  92. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/kde2d.py +6 -0
  93. plot_io-0.13.1/plot_io/presets/line.py +206 -0
  94. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/pie.py +28 -6
  95. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/regression.py +9 -3
  96. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/scatter.py +6 -0
  97. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/stem.py +8 -2
  98. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/violin.py +18 -4
  99. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/settings.py +36 -9
  100. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/sizemaps.py +21 -8
  101. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/styles/__init__.py +10 -2
  102. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/ticks.py +5 -6
  103. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/titles.py +6 -1
  104. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/types.py +1677 -385
  105. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/units.py +12 -3
  106. {plot_io-0.13.0 → plot_io-0.13.1}/tools/gen_api.py +214 -23
  107. {plot_io-0.13.0 → plot_io-0.13.1}/tools/gen_docs.py +71 -5
  108. plot_io-0.13.0/docs/plots/clustermap.md +0 -34
  109. plot_io-0.13.0/docs/plots/facet.md +0 -30
  110. plot_io-0.13.0/docs/plots/joint.md +0 -29
  111. plot_io-0.13.0/docs/plots/linkage.md +0 -34
  112. plot_io-0.13.0/docs/plots/pairs.md +0 -31
  113. plot_io-0.13.0/plot_io/_methods.py +0 -1696
  114. plot_io-0.13.0/plot_io/figure.py +0 -788
  115. plot_io-0.13.0/plot_io/plot.py +0 -597
  116. plot_io-0.13.0/plot_io/presets/line.py +0 -143
  117. {plot_io-0.13.0 → plot_io-0.13.1}/LICENSE +0 -0
  118. {plot_io-0.13.0 → plot_io-0.13.1}/README.md +0 -0
  119. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/annotated.py +0 -0
  120. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/bars.py +0 -0
  121. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/box_plots.py +0 -0
  122. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/colorbars.py +0 -0
  123. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/density.py +0 -0
  124. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/distributions.py +0 -0
  125. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/dots.py +0 -0
  126. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/error_bars.py +0 -0
  127. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/facets.py +0 -0
  128. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/genome_matrices.py +0 -0
  129. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/genome_regions.py +0 -0
  130. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/genome_tracks.py +0 -0
  131. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/grids2d.py +0 -0
  132. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/groups.py +0 -0
  133. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/heatmap.py +0 -0
  134. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/helpers.py +0 -0
  135. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/large_data.py +0 -0
  136. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/layouts.py +0 -0
  137. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/levels.py +0 -0
  138. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/line_band.py +0 -0
  139. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/scales.py +0 -0
  140. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/scatter_groups.py +0 -0
  141. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/shared_colorbar.py +0 -0
  142. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/shared_legend.py +0 -0
  143. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/shared_sizes.py +0 -0
  144. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/styles.py +0 -0
  145. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/time_twin.py +0 -0
  146. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/titles.py +0 -0
  147. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/units.py +0 -0
  148. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples/variable_fonts.py +0 -0
  149. {plot_io-0.13.0 → plot_io-0.13.1}/docs/examples.md +0 -0
  150. {plot_io-0.13.0 → plot_io-0.13.1}/docs/from_matplotlib.md +0 -0
  151. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/canvas.md +0 -0
  152. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/decorations.md +0 -0
  153. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/figure_rows.md +0 -0
  154. {plot_io-0.13.0 → plot_io-0.13.1}/docs/reference/sets.md +0 -0
  155. {plot_io-0.13.0 → plot_io-0.13.1}/docs/tutorial.md +0 -0
  156. {plot_io-0.13.0 → plot_io-0.13.1}/hatch_build.py +0 -0
  157. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/README.md +0 -0
  158. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/__init__.py +0 -0
  159. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/__main__.py +0 -0
  160. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/_api.py +0 -0
  161. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/kernels.py +0 -0
  162. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/manifest.json +0 -0
  163. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/alloc.c +0 -0
  164. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/cluster.c +0 -0
  165. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/colormap.c +0 -0
  166. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/math.c +0 -0
  167. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/plio.h +0 -0
  168. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/plio_api.h +0 -0
  169. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/plot.c +0 -0
  170. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/rt.c +0 -0
  171. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/signatures.c +0 -0
  172. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/sort.c +0 -0
  173. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/_native/src/stats.c +0 -0
  174. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/boxes.py +0 -0
  175. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/canvas.py +0 -0
  176. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/color/__init__.py +0 -0
  177. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/color/data.py +0 -0
  178. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/color/values.py +0 -0
  179. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/color/variants.py +0 -0
  180. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/columns.py +0 -0
  181. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/decorations.py +0 -0
  182. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/defaults.py +0 -0
  183. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/ext.py +0 -0
  184. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/formatters.py +0 -0
  185. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/__init__.py +0 -0
  186. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/adapters.py +0 -0
  187. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/combine.py +0 -0
  188. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/lanes.py +0 -0
  189. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/pack.py +0 -0
  190. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/readers.py +0 -0
  191. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/regions.py +0 -0
  192. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/scale.py +0 -0
  193. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/sources.py +0 -0
  194. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/genome/testing.py +0 -0
  195. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/geometry.py +0 -0
  196. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/groups.py +0 -0
  197. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/guides.py +0 -0
  198. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/helpers/__init__.py +0 -0
  199. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/hints.py +0 -0
  200. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/kernels.py +0 -0
  201. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/labels.py +0 -0
  202. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/__init__.py +0 -0
  203. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/context.py +0 -0
  204. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/core.py +0 -0
  205. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/geoms.py +0 -0
  206. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/grammar.py +0 -0
  207. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/paint.py +0 -0
  208. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/pipeline.py +0 -0
  209. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/positions.py +0 -0
  210. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layers/stats.py +0 -0
  211. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/layout.py +0 -0
  212. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/legend.py +0 -0
  213. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/levels.py +0 -0
  214. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/limits.py +0 -0
  215. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/lines.py +0 -0
  216. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/markers.py +0 -0
  217. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/markup.py +0 -0
  218. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/numbers.py +0 -0
  219. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/occupancy.py +0 -0
  220. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/__init__.py +0 -0
  221. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/_util.py +0 -0
  222. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/presets/curves.py +0 -0
  223. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/py.typed +0 -0
  224. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/registry.py +0 -0
  225. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/render.py +0 -0
  226. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/rows.py +0 -0
  227. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/scales.py +0 -0
  228. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/seams.py +0 -0
  229. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/shapes.py +0 -0
  230. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/sharing.py +0 -0
  231. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/spec.py +0 -0
  232. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/states.py +0 -0
  233. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/styles/library.py +0 -0
  234. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/tables.py +0 -0
  235. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/text.py +0 -0
  236. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/times.py +0 -0
  237. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/transform.py +0 -0
  238. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/validators.py +0 -0
  239. {plot_io-0.13.0 → plot_io-0.13.1}/plot_io/values.py +0 -0
  240. {plot_io-0.13.0 → plot_io-0.13.1}/pyproject.toml +0 -0
  241. {plot_io-0.13.0 → plot_io-0.13.1}/tests/fonts/VarTest.ttf +0 -0
  242. {plot_io-0.13.0 → plot_io-0.13.1}/tests/fonts/VioTest-Bold.ttf +0 -0
  243. {plot_io-0.13.0 → plot_io-0.13.1}/tests/fonts/VioTest-Regular.ttf +0 -0
  244. {plot_io-0.13.0 → plot_io-0.13.1}/tests/fuzz_native.py +0 -0
  245. {plot_io-0.13.0 → plot_io-0.13.1}/tests/golden.json +0 -0
  246. {plot_io-0.13.0 → plot_io-0.13.1}/tests/helpers.py +0 -0
  247. {plot_io-0.13.0 → plot_io-0.13.1}/tests/preset_ref.json +0 -0
  248. {plot_io-0.13.0 → plot_io-0.13.1}/tests/recording.py +0 -0
  249. {plot_io-0.13.0 → plot_io-0.13.1}/tests/stats_reference.json +0 -0
  250. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_api.py +0 -0
  251. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_bars.py +0 -0
  252. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_boundary.py +0 -0
  253. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_box.py +0 -0
  254. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_colorbars.py +0 -0
  255. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_decorations.py +0 -0
  256. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_defaults.py +0 -0
  257. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_density.py +0 -0
  258. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_distributions.py +0 -0
  259. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_docs.py +0 -0
  260. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_dots.py +0 -0
  261. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_edge_cases.py +0 -0
  262. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_entry.py +0 -0
  263. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_figure_title.py +0 -0
  264. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_fonts.py +0 -0
  265. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_genome.py +0 -0
  266. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_geometry.py +0 -0
  267. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_golden.py +0 -0
  268. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_grids.py +0 -0
  269. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_heatmap.py +0 -0
  270. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_invariants.py +0 -0
  271. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_jxl_output.py +0 -0
  272. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_layers.py +0 -0
  273. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_layout.py +0 -0
  274. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_limits.py +0 -0
  275. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_maps.py +0 -0
  276. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_markers.py +0 -0
  277. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_markup.py +0 -0
  278. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_native.py +0 -0
  279. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_numbers.py +0 -0
  280. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_occupancy.py +0 -0
  281. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_output.py +0 -0
  282. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_pie.py +0 -0
  283. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_reflines.py +0 -0
  284. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_registry.py +0 -0
  285. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_rows.py +0 -0
  286. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_series.py +0 -0
  287. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_settings.py +0 -0
  288. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_settings_fuzz.py +0 -0
  289. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_shared_legends.py +0 -0
  290. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_sharing.py +0 -0
  291. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_simplify.py +0 -0
  292. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_size_keys.py +0 -0
  293. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_stats.py +0 -0
  294. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_style_settings.py +0 -0
  295. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_style_types.py +0 -0
  296. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_styles.py +0 -0
  297. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_tables.py +0 -0
  298. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_ticks.py +0 -0
  299. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_time_twin.py +0 -0
  300. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_titles.py +0 -0
  301. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_transform.py +0 -0
  302. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_typing.py +0 -0
  303. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_units.py +0 -0
  304. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_values.py +0 -0
  305. {plot_io-0.13.0 → plot_io-0.13.1}/tests/test_vocabulary.py +0 -0
  306. {plot_io-0.13.0 → plot_io-0.13.1}/tests/typing/user_code.py +0 -0
  307. {plot_io-0.13.0 → plot_io-0.13.1}/tools/build_native.py +0 -0
  308. {plot_io-0.13.0 → plot_io-0.13.1}/tools/settings_doc.py +0 -0
  309. {plot_io-0.13.0 → plot_io-0.13.1}/tools/zig.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: plot_io
3
- Version: 0.13.0
3
+ Version: 0.13.1
4
4
  Summary: Plots for PDF, EPS, SVG, PNG, JPEG, JPEG XL and AVIF, drawn with vec_io
5
5
  Project-URL: Repository, https://github.com/ajgouhier/plot_io
6
6
  Author-email: Arthur Gouhier <ajgouhier@gmail.com>
@@ -614,33 +614,33 @@ each part's rows.
614
614
  | Plot type | Made by | Draws |
615
615
  |---|---|---|
616
616
  | [Scatter](plots/scatter.md) | `plt.Scatter`, `p.scatter`, `fig.scatter` | Markers at points `(x, y)`. |
617
- | [Line](plots/line.md) | `plt.Line`, `p.line`, `fig.line` | A line through `(x, y)`; `y` may hold several columns (one line each, sharing `x`: a 2-D buffer's columns, a data frame, a list of arrays), and `x` may be omitted (`0, 1, 2, …`). |
618
- | [Fill](plots/fill.md) | `plt.Fill`, `p.fill`, `fig.fill` | The area between `y1` and `y2` (a sequence or a constant) along `x`; `orientation="horizontal"` fills between x curves along y (`fill(y, x1, x2)`). |
619
- | [Area](plots/area.md) | `plt.Area`, `p.area`, `fig.area` | Areas of the layers `y` (one column, or several: a dict `{name: values}`, a data frame, a 2-D buffer's columns, a list of arrays) along `x`, stacked on `baseline`; `orientation="horizontal"` runs them along y. |
620
- | [Bar](plots/bar.md) | `plt.Bar`, `p.bar`, `fig.bar` | Bars of height `y` at `x` (categories or numbers), or of a dict `{category: height}`, or of heights alone (at 0, 1, …). |
621
- | [Hist](plots/hist.md) | `plt.Hist`, `p.hist`, `fig.hist` | A histogram of `values`: one array, or several (a dict or a list of arrays) that share the same bins. |
622
- | [Kde](plots/kde.md) | `plt.Kde`, `p.kde`, `fig.kde` | A Gaussian kernel density estimate of `values` (one array, or several as a dict or a list of arrays, on a common grid). |
617
+ | [Line](plots/line.md) | `plt.Line`, `p.line`, `fig.line` | A line through `(x, y)`; `y` may hold several columns, one line each, sharing `x`. |
618
+ | [Fill](plots/fill.md) | `plt.Fill`, `p.fill`, `fig.fill` | The area between `y1` and `y2` along `x`; `orientation="horizontal"` fills between x curves along y (`fill(y, x1, x2)`). |
619
+ | [Area](plots/area.md) | `plt.Area`, `p.area`, `fig.area` | Areas of the layers `y` along `x`, stacked on `baseline`; `orientation="horizontal"` runs them along y. |
620
+ | [Bar](plots/bar.md) | `plt.Bar`, `p.bar`, `fig.bar` | Bars of height `y` at `x`. |
621
+ | [Hist](plots/hist.md) | `plt.Hist`, `p.hist`, `fig.hist` | A histogram of `values`; several sets share the same bins. |
622
+ | [Kde](plots/kde.md) | `plt.Kde`, `p.kde`, `fig.kde` | A Gaussian kernel density estimate of `values`; several sets share a common grid. |
623
623
  | [Kde2d](plots/kde2d.md) | `plt.Kde2d` | Density contours of points `(x, y)`: the 2-D Gaussian density on a grid over the data plus `cut` bandwidths, drawn at levels enclosing equal shares of the mass. |
624
- | [Ecdf](plots/ecdf.md) | `plt.Ecdf`, `p.ecdf`, `fig.ecdf` | The empirical cumulative distribution of `values` (one array, or several as a dict or a list of arrays). |
625
- | [Box](plots/box.md) | `plt.Box`, `p.box`, `fig.box` | Box plots of `values`: a dict `{category: values}`, a list of arrays (categories `0, 1, …` or `categories=`), or one array. |
626
- | [Violin](plots/violin.md) | `plt.Violin`, `p.violin`, `fig.violin` | Violins of `values`: a dict `{category: values}`, a list of arrays (categories `0, 1, …` or `categories=`), or one array. |
627
- | [Strip](plots/strip.md) | `plt.Strip`, `p.strip`, `fig.strip` | Points of each category's values, spread across the slot by random jitter (from a fixed seed, so output is reproducible). |
624
+ | [Ecdf](plots/ecdf.md) | `plt.Ecdf`, `p.ecdf`, `fig.ecdf` | The empirical cumulative distribution of `values`, one step line per set. |
625
+ | [Box](plots/box.md) | `plt.Box`, `p.box`, `fig.box` | Box plots of `values`, one box per category. |
626
+ | [Violin](plots/violin.md) | `plt.Violin`, `p.violin`, `fig.violin` | Violins of `values`, one per category. |
627
+ | [Strip](plots/strip.md) | `plt.Strip`, `p.strip`, `fig.strip` | Points of each category's values, spread across the slot by random jitter, from a fixed seed so that output is reproducible. |
628
628
  | [Swarm](plots/swarm.md) | `plt.Swarm`, `p.swarm`, `fig.swarm` | Points of each category's values, side by side so that they do not overlap (points that do not fit go to the slot's edge, with a warning; above 100,000 points, jittered across the width as a strip, with a warning). |
629
629
  | [Errorbar](plots/errorbar.md) | `plt.Errorbar`, `p.errorbar`, `fig.errorbar` | Error bars at `(x, y)`: `y_error`/`x_error` as a value, a sequence, `(low, high)` or `Errors`; `marker` adds markers at the points (numbers per point in `marker_color` map through the series' color axis). |
630
- | [Stem](plots/stem.md) | `plt.Stem`, `p.stem`, `fig.stem` | Stems from `baseline` to `y` at `x` (or at 0, 1, … when `y` is omitted); numbers per point in `marker_color` map through the series' color axis. |
631
- | [Regression](plots/regression.md) | `plt.Regression`, `p.regression`, `fig.regression` | A regression of `y` on `x`: a polynomial of `order` (least squares) with a confidence band of the mean, or a LOWESS curve; `scatter` also draws the points (numbers per point in `marker_color` map through the series' color axis). |
632
- | [Heatmap](plots/heatmap.md) | `plt.Heatmap`, `p.heatmap`, `fig.heatmap` | A grid of values (rows first) as colored cells; `x`/`y` give cell labels, centres or edges. |
633
- | [Hist2d](plots/hist2d.md) | `plt.Hist2d`, `p.hist2d`, `fig.hist2d` | A 2-D histogram of points `(x, y)`: counts in bins (even on the axis scales), drawn as a heatmap; bins with fewer than `min_count` points are left empty. |
630
+ | [Stem](plots/stem.md) | `plt.Stem`, `p.stem`, `fig.stem` | Stems from `baseline` to `y` at `x`; numbers per point in `marker_color` map through the series' color axis. |
631
+ | [Regression](plots/regression.md) | `plt.Regression`, `p.regression`, `fig.regression` | A regression of `y` on `x`: a polynomial of `order` (least squares) with a confidence band of the mean, or a LOWESS curve; `scatter` also draws the points; numbers per point in `marker_color` map through the series' color axis. |
632
+ | [Heatmap](plots/heatmap.md) | `plt.Heatmap`, `p.heatmap`, `fig.heatmap` | A grid of `values`, rows first, as colored cells; `x`/`y` give cell labels, centres or edges. |
633
+ | [Hist2d](plots/hist2d.md) | `plt.Hist2d`, `p.hist2d`, `fig.hist2d` | A 2-D histogram of points `(x, y)`: counts in bins, even on the axis scales, drawn as a heatmap; bins with fewer than `min_count` points are left empty. |
634
634
  | [Hexbin](plots/hexbin.md) | `plt.Hexbin`, `p.hexbin`, `fig.hexbin` | A hexagonal 2-D histogram of points `(x, y)`: `bins` regular hexagons across the axes width. |
635
- | [Contour](plots/contour.md) | `plt.Contour`, `p.contour`, `fig.contour` | Contour lines and/or filled bands of `values` (rows first) at nodes `x`/`y` (centres; edges are reduced to their midpoints). |
636
- | [Pie](plots/pie.md) | `plt.Pie`, `p.pie`, `fig.pie` | A pie (or donut, with `hole`) of `values`: a sequence, or a dict `{label: value}`; the plot is drawn without axes. |
637
- | [Dots](plots/dots.md) | `plt.Dots`, `p.dots`, `fig.dots` | One marker per cell of a grid: `color` and `size` are grids of values (row 0 first) of one shape, or one value; `x`/`y` label the columns and rows, as `heatmap`'s. |
638
- | [QQ](plots/qq.md) | `plt.QQ`, `p.qq`, `fig.qq` | The sorted `values` against the quantiles of `dist` at R's `ppoints` (`(i − a) / (n + 1 − 2a)`, a = 3/8 for n ≤ 10, else 1/2), or against the sorted `y` (two samples: the longer interpolated to the shorter's size, as R's `qqplot`; `values` on x). |
639
- | [Raincloud](plots/raincloud.md) | `plt.Raincloud`, `p.raincloud`, `fig.raincloud` | Rainclouds of `values` (a dict `{category: values}`, a list of arrays, or one array; long data with `x=` categories): per category a half violin on the high side (stat `violin`), a narrow box at the centre (stat `box`) and the values as jittered points on the low side. |
640
- | [Volcano](plots/volcano.md) | `plt.Volcano`, `p.volcano`, `fig.volcano` | Differential results: log2 `fold_change` (x) against −log10 `p` (y; p = 0 at the smallest positive p, NaN left out). |
641
- | [Ma](plots/ma.md) | `plt.Ma`, `p.ma`, `fig.ma` | An MA plot: mean expression `mean` (x, on a log10 axis unless the axis has a scale) against log2 `fold_change` (y), a rule at 0 and dashed ones at ± `fold_change_threshold`. |
642
- | [Manhattan](plots/manhattan.md) | `plt.Manhattan`, `p.manhattan`, `fig.manhattan` | Genome-wide association results: −log10 `p` (y) at `positions` (bp) of `chromosomes` laid end to end (x) in natural order (chr1 … chr22, X, Y, M), each `chr_sizes` long (unset: to its last position), its points in the next of the two `colors`, its name as the tick at its middle (left to right, a name that would overlap the last one shown is left out), the x axis from the first chromosome's start to the last one's end; a dashed rule at `threshold` (genome-wide significance). |
643
- | [Dendrogram](plots/dendrogram.md) | `plt.Dendrogram`, `p.dendrogram`, `fig.dendrogram` | The merges of `tree` (a `Tree`, or a scipy `Z`) as U-shaped links: the leaves at slots 0, 1, … in `tree.leaves` order on the leaf axis, the heights on the value axis, the root at the top (`orientation="horizontal"`: at the left, heights along x, the x axis inverted unless set). |
635
+ | [Contour](plots/contour.md) | `plt.Contour`, `p.contour`, `fig.contour` | Contour lines and/or filled bands of the grid `values` at nodes `x`/`y`. |
636
+ | [Pie](plots/pie.md) | `plt.Pie`, `p.pie`, `fig.pie` | A pie (or donut, with `hole`) of `values`; the plot is drawn without axes. |
637
+ | [Dots](plots/dots.md) | `plt.Dots`, `p.dots`, `fig.dots` | One marker per cell of a grid, its color and size mapping the cell's values. |
638
+ | [QQ](plots/qq.md) | `plt.QQ`, `p.qq`, `fig.qq` | The sorted `values` against the quantiles of `dist` at R's `ppoints` (`(i − a) / (n + 1 − 2a)`, a = 3/8 for n ≤ 10, else 1/2), or against the sorted `y` (with two samples, the longer interpolated to the shorter's size, as R's `qqplot`). |
639
+ | [Raincloud](plots/raincloud.md) | `plt.Raincloud`, `p.raincloud`, `fig.raincloud` | Rainclouds: per category a half violin on the high side (stat `violin`), a narrow box at the centre (stat `box`) and the values as jittered points on the low side. |
640
+ | [Volcano](plots/volcano.md) | `plt.Volcano`, `p.volcano`, `fig.volcano` | Differential results, log2 fold change (x) against −log10 p-value (y). |
641
+ | [Ma](plots/ma.md) | `plt.Ma`, `p.ma`, `fig.ma` | An MA plot, mean expression (x, on a log10 axis unless the axis has a scale) against log2 fold change (y), a rule at 0 and dashed ones at ± `fold_change_threshold`. |
642
+ | [Manhattan](plots/manhattan.md) | `plt.Manhattan`, `p.manhattan`, `fig.manhattan` | Genome-wide association results, −log10 p-value (y) at positions of chromosomes laid end to end (x) in natural order (chr1 … chr22, X, Y, M), each `chr_sizes` long (unset: to its last position), its points in the next of the two `colors`, its name as the tick at its middle (left to right, a name that would overlap the last one shown is left out), the x axis from the first chromosome's start to the last one's end; a dashed rule at `threshold` (genome-wide significance). |
643
+ | [Dendrogram](plots/dendrogram.md) | `plt.Dendrogram`, `p.dendrogram`, `fig.dendrogram` | The merges of a tree as U-shaped links: the leaves at slots 0, 1, … in `tree.leaves` order on the leaf axis, the heights on the value axis, the root at the top (`orientation="horizontal"`: at the left, heights along x, the x axis inverted unless set). |
644
644
  <!-- end gen -->
645
645
 
646
646
  Figure helpers:
@@ -648,11 +648,11 @@ Figure helpers:
648
648
  <!-- gen: plot-types helpers -->
649
649
  | Plot type | Made by | Draws |
650
650
  |---|---|---|
651
- | [facet](plots/facet.md) | `plt.facet` | Small multiples of `data`: a figure with one plot per value of `col` (and `row`), and the `FacetSet` of its panels. |
652
- | [joint](plots/joint.md) | `plt.joint` | A joint plot: `kind` (`scatter`, `hexbin`, `hist2d`, `kde2d`, `regression`) of `x` and `y` in the main plot, `marginal` distributions (`hist`, `kde`, `box`, `violin`, `strip`, `None`; `"auto"`: `kde` when `color` maps levels, else `hist`) above it and on its right, `ratio` times narrower, `gap` apart. |
653
- | [pairs](plots/pairs.md) | `plt.pairs` | Every pair of the columns `vars` of `data` (default: its numeric columns but `color`'s): an n × n grid, row i plotting `vars[i]` on y, column j `vars[j]` on x, x shared per column and y per row; `kind` (`scatter`, `hexbin`, `hist2d`, `kde2d`, `regression`) off the diagonal, `diagonal` (`hist`, `kde`, `None`; `"auto"`: `kde` when `color` maps levels, else `hist`) on it, on a hidden `twin_y` of each diagonal cell. |
654
- | [clustermap](plots/clustermap.md) | `plt.clustermap` | A heatmap of `matrix` (rows first: a 2-D buffer, a sequence of rows or a data frame, whose index and columns name them) with its rows and columns in the leaf order of their trees (`rows`, `cols`: `True` clusters them with `method` and `metric`, as `plt.linkage`; a `Tree` or a scipy `Z`; `False` keeps the order), the dendrograms left and top, `tree_size` wide. |
655
- | [linkage](plots/linkage.md) | `plt.linkage` | The `Tree` of a hierarchical clustering of the rows (`axis="cols"`: the columns) of `data`, a 2-D buffer, a sequence of rows or a data frame (its row or column names the labels); `metric="precomputed"`: `data` is the condensed distance vector. |
651
+ | [facet](plots/facet.md) | `plt.facet` | Small multiples: a figure with one plot per value of `col` (and `row`), and the `FacetSet` of its panels. |
652
+ | [joint](plots/joint.md) | `plt.joint` | A joint plot: the main plot of `x` against `y`, the marginal distributions above it and on its right. |
653
+ | [pairs](plots/pairs.md) | `plt.pairs` | Every pair of some columns of a table: an n × n grid, row i plotting `vars[i]` on y, column j `vars[j]` on x, x shared per column and y per row; the diagonal plots on a hidden `twin_y` of each diagonal cell. |
654
+ | [clustermap](plots/clustermap.md) | `plt.clustermap` | A heatmap with its rows and columns in the leaf order of their trees, the dendrograms left and top. |
655
+ | [linkage](plots/linkage.md) | `plt.linkage` | The `Tree` of a hierarchical clustering of the rows or columns of a matrix. |
656
656
  <!-- end gen -->
657
657
 
658
658
  ### Plot types of your own
@@ -1113,14 +1113,14 @@ out. A reader's error is raised with the track's label in the message.
1113
1113
  <!-- gen: plot-types genome -->
1114
1114
  | Plot type | Made by | Draws |
1115
1115
  |---|---|---|
1116
- | [BigWig](plots/bigwig.md) | `plt.BigWig`, `p.bigwig`, `fig.bigwig` | A binned signal over the region: a step line along the bins, filled to a baseline. |
1117
- | [Bed](plots/bed.md) | `plt.Bed`, `p.bed`, `fig.bed` | Intervals over the region: boxes or gene models, on one row or packed onto rows. |
1116
+ | [BigWig](plots/bigwig.md) | `plt.BigWig`, `p.bigwig`, `fig.bigwig` | A binned signal over the region, a step line along the bins, filled to a baseline. |
1117
+ | [Bed](plots/bed.md) | `plt.Bed`, `p.bed`, `fig.bed` | Intervals over the region, as boxes or gene models, on one row or packed onto rows. |
1118
1118
  | [Genes](plots/genes.md) | `plt.Genes`, `p.genes`, `fig.genes` | Gene models (BED12): `Bed` with `kind="genes"`, rows expanded and names on. |
1119
- | [Gtf](plots/gtf.md) | `plt.Gtf`, `p.gtf`, `fig.gtf` | Gene models of a GTF or GFF3 reader (`read_entries(model=)`) or path: `Genes`, one model per gene (its transcripts' exons merged) or per transcript, or plain BED12 data as `Genes` takes it. |
1119
+ | [Gtf](plots/gtf.md) | `plt.Gtf`, `p.gtf`, `fig.gtf` | Gene models of a GTF or GFF3 annotation (read with `read_entries(model=)`): `Genes`, one model per gene (its transcripts' exons merged) or per transcript. |
1120
1120
  | [HiC](plots/hic.md) | `plt.HiC`, `p.hic`, `fig.hic` | The upper triangle of a contact matrix, the diagonal along the x axis (each cell a diamond), or with `shape="square"` the whole matrix of `region` (x) against `region2` (y, its start at the top). |
1121
1121
  | [Links](plots/links.md) | `plt.Links`, `p.links`, `fig.links` | Links between pairs of places (BEDPE): an arc from anchor centre to anchor centre in a lane of its own, or, `lane="over"` a Hi-C triangle or square, a mark at each pair's contact cell (on a square, and at its mirror). |
1122
- | [SiteHeatmap](plots/site_heatmap.md) | `plt.SiteHeatmap`, `p.site_heatmap`, `fig.site_heatmap` | A signal around sites, one row per site (a table with `chr`, `start`, `end` and optional `strand`, `summit` columns, or an interval reader), x the distance from the anchor in bp; `group` (a column of the sites, or a label per site) makes a block of rows per group. |
1123
- | [SiteProfile](plots/site_profile.md) | `plt.SiteProfile`, `p.site_profile`, `fig.site_profile` | The column mean (or median) of a signal around sites (see `SiteHeatmap`): one line per group, x the distance from the anchor in bp, an optional band. |
1122
+ | [SiteHeatmap](plots/site_heatmap.md) | `plt.SiteHeatmap`, `p.site_heatmap`, `fig.site_heatmap` | A signal around sites, one row per site, x the distance from the anchor in bp; `group` makes a block of rows per group. |
1123
+ | [SiteProfile](plots/site_profile.md) | `plt.SiteProfile`, `p.site_profile`, `fig.site_profile` | The column mean (or median) of a signal around sites, as `SiteHeatmap` reads it: one line per group, x the distance from the anchor in bp, an optional band. |
1124
1124
  <!-- end gen -->
1125
1125
 
1126
1126
  ## 10. Styles
@@ -10,14 +10,21 @@ p.area(x, y, *, data=None, group=None, group_order=None, group_missing=None,
10
10
  group_colors=None, **settings) -> Area
11
11
  ```
12
12
 
13
- Areas of the layers `y` (one column, or several: a dict `{name: values}`, a
14
- data frame, a 2-D buffer's columns, a list of arrays) along `x`, stacked on `baseline`; `orientation="horizontal"` runs them along y.
13
+ Areas of the layers `y` along `x`, stacked on `baseline`;
14
+ `orientation="horizontal"` runs them along y.
15
15
 
16
16
  Named layers get a legend entry each. `baseline`: `zero`, `sym`, `wiggle` or
17
17
  `weighted_wiggle` (matplotlib's stackplot baselines). `fill_opacity` is the fills'
18
18
  opacity, `opacity` the whole series'. `interpolation` and `missing` as
19
19
  [`Fill`](fill.md)'s.
20
20
 
21
+ | Parameter | Meaning |
22
+ |---|---|
23
+ | `x` | The positions along the layers: numbers, dates or categories, or a column name of `data`. |
24
+ | `y` | The layers: one column, or several (a dict of name to values, a data frame, a 2-D buffer's columns, a list of arrays), or a column name of `data`. |
25
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
26
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
27
+
21
28
  ## Example
22
29
 
23
30
  ```python
@@ -10,8 +10,7 @@ p.bar(x, y=None, *, data=None, group=None, group_order=None, group_missing=None,
10
10
  group_colors=None, **settings) -> Bar
11
11
  ```
12
12
 
13
- Bars of height `y` at `x` (categories or numbers), or of a dict
14
- `{category: height}`, or of heights alone (at 0, 1, …).
13
+ Bars of height `y` at `x`.
15
14
 
16
15
  Categories make a category axis (`None` among them: no bar there); numbers centre the
17
16
  bars on them, `width` in data units. `value_labels` writes the values outside,
@@ -22,6 +21,13 @@ style them). Value axes include 0 (`include_zero="auto"`). With replicates,
22
21
  interval ([summaries](../api.md#summaries-estimate-interval)). Bars share their category's slot with the plot's other bar
23
22
  series (`dodge`, `stack`: [series](../api.md#5-series)).
24
23
 
24
+ | Parameter | Meaning |
25
+ |---|---|
26
+ | `x` | The bars' positions: categories (a category axis; `None`: no bar there) or numbers (bars centred on them), or a column name of `data`; with `y` omitted, the heights (bars at 0, 1, …) or a dict of category to height. |
27
+ | `y` | The bars' heights, or a column name of `data`. |
28
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
29
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
30
+
25
31
  ## Example
26
32
 
27
33
  ```python
@@ -9,12 +9,8 @@ plt.Bed(reader, *, plot=None, **settings)
9
9
  p.bed(reader, **settings) -> Bed
10
10
  ```
11
11
 
12
- Intervals over the region: boxes or gene models, on one row or packed onto
13
- rows. `reader` is an interval reader (bigBed, BED, peaks), a path (opened with
14
- gwseq_io) or plain data: a dict of
15
- columns, a DataFrame, or rows (`start`, `end` and optionally `name`, `score`,
16
- `strand`, `thickStart`, `thickEnd`, `itemRgb`, `blockCount`,
17
- `blockSizes`, `blockStarts`).
12
+ Intervals over the region, as boxes or gene models, on one row or packed onto
13
+ rows.
18
14
 
19
15
  Paths and readers: see [readers](../api.md#readers). Rows of other chromosomes than the region's are left
20
16
  out (when a `chr` column is given). A score that is not a number (`"."`) is missing
@@ -48,6 +44,12 @@ closest color's shade at that level, so every feature has the same lightness.
48
44
  Over a Hi-C triangle (`lane="over"`) each interval is an outlined triangle (a TAD);
49
45
  over a square, an outlined square on the diagonal (see [`HiC`](hic.md)).
50
46
 
47
+ | Parameter | Meaning |
48
+ |---|---|
49
+ | `reader` | The intervals: an interval reader (bigBed, BED, peaks), a path (opened with gwseq_io) or plain data: a dict of columns, a DataFrame, or rows (`start`, `end` and optionally `name`, `score`, `strand`, `thickStart`, `thickEnd`, `itemRgb`, `blockCount`, `blockSizes`, `blockStarts`). |
50
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
51
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
52
+
51
53
  ## Example
52
54
 
53
55
  ```python
@@ -63,7 +65,7 @@ fig.bed({"start": [5_000, 22_000, 40_000, 47_000, 70_000],
63
65
 
64
66
  | Setting | Default | Meaning |
65
67
  |---|---|---|
66
- | `region` | — | The region read: `"chr2:143,120,001-143,780,000"` (1-based, inclusive), `(chr, start, end)` (0-based, half-open), a mapping, or a chromosome name (the whole chromosome, as the x axis' `chr_sizes` gives it); unset: the x axis' `region`. |
68
+ | `region` | — | The region read: `"chr2:143,120,001-143,780,000"` (1-based, inclusive), `(chr, start, end)` (0-based, half-open), a mapping, or a chromosome name, for the whole chromosome (as the x axis' `chr_sizes` gives it); unset: the x axis' `region`. |
67
69
  | `lane` | 'below' | Where the series is drawn: in a lane of its own `below` or `above` the track's value lane (signals, Hi-C; each group top to bottom in call order), or `over` the lane of the series called before it (over a signal, its rows span the signal's lane; over intervals, the two share rows; over a Hi-C triangle, intervals are drawn as TADs and links as loop marks). |
68
70
  | `kind` | 'boxes' | `boxes` (intervals, 8/13.2 of a row high: 8 px in the default row) or `genes` (BED12 models: exons as high, UTRs half, introns). |
69
71
  | `rows` | 'collapse' | `collapse`: one row; `expand`: overlapping features (and their names) packed onto rows; `squish`: packed onto rows half `row_height` high, without names. |
@@ -9,14 +9,8 @@ plt.BigWig(reader=None, *, plot=None, x=None, y=None, **settings)
9
9
  p.bigwig(reader=None, *, x=None, y=None, **settings) -> BigWig
10
10
  ```
11
11
 
12
- A binned signal over the region: a step line along the bins, filled to a baseline.
13
- `reader` is a signal reader (bigWig, bedGraph, WIG; BAM, CRAM, bigBed, BED and
14
- peaks give their coverage;
15
- `combine` of two), a path (opened with gwseq_io),
16
- `chr`, `start`, `end`, `value` records (columns, a DataFrame or rows; binned
17
- by plot_io), a function `f(chr, start, end, bins)` giving values, or `None` with
18
- `y` (values over the region) and optionally `x` (bin centres, or n + 1 edges, in
19
- bp).
12
+ A binned signal over the region, a step line along the bins, filled to a baseline.
13
+ BAM, CRAM, bigBed, BED and peaks give their coverage.
20
14
 
21
15
  Records and paths: see [readers](../api.md#readers). The color is black when the series is alone in its
22
16
  track, the plot's colors when overlaid. `fill_to=<series>` fills between two signals,
@@ -55,6 +49,14 @@ for name, r in readers.items():
55
49
  fig.bigwig(plt.genome.combine(treat, control, "log2ratio", pseudo_count=1))
56
50
  ```
57
51
 
52
+ | Parameter | Meaning |
53
+ |---|---|
54
+ | `reader` | The signal: a signal reader (bigWig, bedGraph, WIG, BAM, CRAM, bigBed, BED, peaks; `plot_io.genome.combine` of two), a path (opened with gwseq_io), `chr`, `start`, `end`, `value` records (columns, a DataFrame or rows; binned by plot_io), a function `f(chr, start, end, bins)` giving values, or `None` with `y`. |
55
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
56
+ | `x` | With `reader=None`: the bins' centres, or their n + 1 edges, in bp; `None`: `y` spread evenly over the region. |
57
+ | `y` | With `reader=None`: the values over the region, one per bin. |
58
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
59
+
58
60
  ## Example
59
61
 
60
62
  ```python
@@ -70,7 +72,7 @@ fig.bigwig(y=[0.2 + math.exp(-((i - 60) / 6) ** 2) + 0.6 * math.exp(-((i - 140)
70
72
 
71
73
  | Setting | Default | Meaning |
72
74
  |---|---|---|
73
- | `region` | — | The region read: `"chr2:143,120,001-143,780,000"` (1-based, inclusive), `(chr, start, end)` (0-based, half-open), a mapping, or a chromosome name (the whole chromosome, as the x axis' `chr_sizes` gives it); unset: the x axis' `region`. |
75
+ | `region` | — | The region read: `"chr2:143,120,001-143,780,000"` (1-based, inclusive), `(chr, start, end)` (0-based, half-open), a mapping, or a chromosome name, for the whole chromosome (as the x axis' `chr_sizes` gives it); unset: the x axis' `region`. |
74
76
  | `bins` | '0.5px' | A bin count over the region (exactly, not on a grid); a bin size (`"10kb"`, `"5000bp"`), read on the genome-wide grid of the size (the row grown to it, then cut to the region); or a bin width on the axes (`"0.5px"`: two bins per px, read as a count). |
75
77
  | `bin_mode` | 'mean' | Reduction per bin: `mean`, `max` (keeps narrow peaks), `min`, `sum`, … (gwseq_io's); `auto`: the mean line over a band from each bin's `min` to its `max` (in the fill color at `fill_opacity`, in place of the fill; three reads). |
76
78
  | `def_value` | 0.0 | Value of bases no record covers; NaN breaks the line there. |
@@ -10,11 +10,9 @@ p.box(values, positions=None, *, data=None, group=None, group_order=None,
10
10
  group_missing=None, group_colors=None, **settings) -> Box
11
11
  ```
12
12
 
13
- Box plots of `values`: a dict `{category: values}`, a list of arrays
14
- (categories `0, 1, …` or `categories=`), or one array.
13
+ Box plots of `values`, one box per category.
15
14
 
16
- `values` may also be a data frame (categories by column) or a 2-D buffer;
17
- `positions` places the boxes on a numeric axis instead. Quartiles interpolate
15
+ Quartiles interpolate
18
16
  linearly (numpy's default; with `weights`, Hmisc's `wtd.quantile` on the cumulative
19
17
  weights); whiskers reach the furthest data within `whiskers` × IQR, or the range, or
20
18
  percentiles; points beyond are outliers. Box series of a plot share each category's
@@ -23,6 +21,13 @@ the boxes within their slot (`"-20%"`: a fifth of the slot toward lower position
23
21
  on strip and swarm series. `box.stats`: `{category: BoxStats(count, mean, q1,
24
22
  median, q3, low, high, outliers)}`.
25
23
 
24
+ | Parameter | Meaning |
25
+ |---|---|
26
+ | `values` | The values by category: a dict `{category: values}`, a list of arrays (categories `0, 1, …` or `categories=`), one array, a data frame (categories by column) or a 2-D buffer; or flat values (or a column name of `data`) with each one's category in `x` (`y` when horizontal). |
27
+ | `positions` | Numeric positions, one per category: the groups on a numeric axis instead of a category axis. |
28
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
29
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
30
+
26
31
  ## Example
27
32
 
28
33
  ```python
@@ -0,0 +1,42 @@
1
+ # clustermap
2
+
3
+ <!-- written by tools/gen_docs.py from plot_io's docstrings: do not edit -->
4
+
5
+ [Plot types](../api.md#plot-types) · made by `plt.clustermap`
6
+
7
+ ```python
8
+ plt.clustermap(matrix, x=None, y=None, method="average", metric="euclidean", rows=True,
9
+ cols=True, scale=None, standard_scale=None, row_colors=None, col_colors=None,
10
+ tree_size="15%", colorbar="right", **heatmap_settings) -> tuple
11
+ ```
12
+
13
+ A heatmap with its rows and columns in the leaf order of their trees, the
14
+ dendrograms left and top. `scale` and `standard_scale` apply before clustering and
15
+ drawing. Returns the figure and its [`ClusterMap`](../reference/sets.md#clustermap).
16
+
17
+ | Parameter | Meaning |
18
+ |---|---|
19
+ | `x` | The column labels; `None`: the frame's, else the indices. |
20
+ | `matrix` | The values, rows first: a 2-D buffer, a sequence of rows or a data frame (whose index and columns name them). |
21
+ | `y` | The row labels; `None`: the frame's, else the indices. |
22
+ | `method` | The linkage of `rows=True` and `cols=True`, as `plt.linkage` takes it. |
23
+ | `metric` | The distance of `rows=True` and `cols=True`, as `plt.linkage` takes it. |
24
+ | `rows` | The rows' tree: `True` clusters them (`method`, `metric`), a `Tree` or a scipy `Z`; `False` keeps their order. |
25
+ | `cols` | The columns' tree, as `rows` takes it. |
26
+ | `scale` | Z-scores of each row (`"rows"`) or column (`"cols"`); not with `standard_scale`. |
27
+ | `standard_scale` | Each row (`"rows"`) or column (`"cols"`) scaled to 0…1; not with `scale`. |
28
+ | `row_colors` | An annotation strip between the left dendrogram and the heatmap, one value per row: colors drawn as given, or categories as levels (one color each, in the legend). |
29
+ | `col_colors` | An annotation strip between the top dendrogram and the heatmap, one value per column, as `row_colors` takes them. |
30
+ | `tree_size` | The dendrograms' width (a length or a share of the figure). |
31
+ | `colorbar` | The colorbar's side, or `None` for none (it is `ClusterMap.colorbar`). |
32
+ | `heatmap_settings` | The heatmap's settings, and the figure's (default 480 × 480 px). |
33
+
34
+ ## Example
35
+
36
+ ```python
37
+ rng = random.Random(1)
38
+ matrix = [[rng.gauss(r % 3, 1) + c % 2 for c in range(8)] for r in range(12)]
39
+ fig, cm = plt.clustermap(matrix, width=260, height=240)
40
+ ```
41
+
42
+ ![clustermap](../images/clustermap.svg)
@@ -10,8 +10,7 @@ p.contour(values, x=None, y=None, *, data=None, group=None, group_order=None,
10
10
  group_missing=None, group_colors=None, **settings) -> Contour
11
11
  ```
12
12
 
13
- Contour lines and/or filled bands of `values` (rows first) at nodes `x`/`y`
14
- (centres; edges are reduced to their midpoints).
13
+ Contour lines and/or filled bands of the grid `values` at nodes `x`/`y`.
15
14
 
16
15
  `lines` draws iso-lines and `fill` filled bands. `levels`: a number of nice values
17
16
  over the data, or the values. Lines take the map's colors: of a qualitative
@@ -20,6 +19,14 @@ that color; `negative_style` dashes
20
19
  negative levels drawn in one color; `value_labels` writes the levels on the lines.
21
20
  Bands are colored by their middle value.
22
21
 
22
+ | Parameter | Meaning |
23
+ |---|---|
24
+ | `values` | The grid of numbers, rows first: a 2-D sequence or buffer, at least 2 × 2. |
25
+ | `x` | The x of the columns' nodes: `None` (indices), n centres or n + 1 edges (reduced to their midpoints); numbers only. |
26
+ | `y` | The y of the rows' nodes, as `x` takes them. |
27
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
28
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
29
+
23
30
  ## Example
24
31
 
25
32
  ```python
@@ -9,19 +9,26 @@ plt.Dendrogram(tree, labels=None, *, plot=None, **settings)
9
9
  p.dendrogram(tree, labels=None, **settings) -> Dendrogram
10
10
  ```
11
11
 
12
- The merges of `tree` (a `Tree`, or a scipy `Z`) as U-shaped links: the
13
- leaves at slots 0, 1, … in `tree.leaves` order on the leaf axis, the heights on the
14
- value axis, the root at the top (`orientation="horizontal"`: at the left, heights
15
- along x, the x axis inverted unless set). `labels` (default: the tree's) make the
16
- leaf axis categorical, in leaf order, so a heatmap with the same categories shares it;
17
- without labels each leaf is ticked with its observation's index. Every leaf is
18
- labelled: turned 90° when the labels do not fit flat, then smaller, down to the axis'
19
- `label_min_size` (6 pt), and every k-th only below it.
12
+ The merges of a tree as U-shaped links: the leaves at slots 0, 1, … in
13
+ `tree.leaves` order on the leaf axis, the heights on the value axis, the root at the
14
+ top (`orientation="horizontal"`: at the left, heights along x, the x axis inverted
15
+ unless set). Labels make the leaf axis categorical, in leaf order, so a heatmap with
16
+ the same categories shares it; without labels each leaf is ticked with its
17
+ observation's index. Every leaf is labelled: turned 90° when the labels do not fit
18
+ flat, then smaller, down to the axis' `label_min_size` (6 pt), and every k-th only
19
+ below it.
20
20
 
21
21
  `clusters=k` draws the links inside each of the `k` flat clusters in the next
22
22
  plot's colors, the others in `color` (default: the text color). Trees come from
23
23
  [`linkage`](linkage.md), or `plt.Tree(Z, labels=None)` of a scipy linkage matrix.
24
24
 
25
+ | Parameter | Meaning |
26
+ |---|---|
27
+ | `tree` | The tree: a `Tree`, or a scipy linkage matrix `Z`. |
28
+ | `labels` | One label per observation, all different; `None`: the tree's. |
29
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
30
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
31
+
25
32
  ## Example
26
33
 
27
34
  ```python
@@ -10,10 +10,7 @@ p.dots(color=None, size=None, x=None, y=None, *, data=None, group=None, group_or
10
10
  group_missing=None, group_colors=None, **settings) -> Dots
11
11
  ```
12
12
 
13
- One marker per cell of a grid: `color` and `size` are grids of values (row 0
14
- first) of one shape, or one value; `x`/`y` label the columns and rows, as
15
- `heatmap`'s. With long data (`x`, `y` and values per cell), the cells come from
16
- the rows; cells without a row get no dot.
13
+ One marker per cell of a grid, its color and size mapping the cell's values.
17
14
 
18
15
  Values always map: colors through the series' [color axis](../api.md#6-color-and-size-axes) (a colorbar by default),
19
16
  sizes through its size axis (`size_map` `(0, 12)` px and `size_limits`
@@ -22,7 +19,8 @@ sizes through its size axis (`size_map` `(0, 12)` px and `size_limits`
22
19
  leaves the cell empty; a missing color takes the map's `bad`.
23
20
 
24
21
  - Long data: `x`, `y` and `color`/`size` per cell (columns with `data=`, or
25
- sequences), one row per cell; two rows for one cell are an error. Categories in order
22
+ sequences), one row per cell; two rows for one cell are an error, and cells without a
23
+ row get no dot. Categories in order
26
24
  of first appearance (pandas or polars categoricals: theirs); `x_categories=` /
27
25
  `y_categories=` lists select and order them.
28
26
  - `scale_color`: `"rows"` / `"columns"` rescales color values to 0–1 in each row or
@@ -31,6 +29,15 @@ leaves the cell empty; a missing color takes the map's `bad`.
31
29
  closer than `category_label_spacing` are thinned out. `data_ratio=1` on the plot
32
30
  makes cells square.
33
31
 
32
+ | Parameter | Meaning |
33
+ |---|---|
34
+ | `color` | The color values: a grid (rows of cells, row 0 first), one value, or one value per row of long data (a sequence, or a column name of `data`). |
35
+ | `size` | The size values, as `color` takes them; a grid has the shape of `color`'s. |
36
+ | `x` | The column labels (`None`: indices), as `heatmap`'s; with long data, each row's column (a sequence, or a column name of `data`). |
37
+ | `y` | The row labels, as `x` takes them; with long data, each row's row. |
38
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
39
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
40
+
34
41
  ## Example
35
42
 
36
43
  ```python
@@ -10,13 +10,18 @@ p.ecdf(values, *, data=None, group=None, group_order=None, group_missing=None,
10
10
  group_colors=None, **settings) -> Ecdf
11
11
  ```
12
12
 
13
- The empirical cumulative distribution of `values` (one array, or several as a dict
14
- or a list of arrays).
13
+ The empirical cumulative distribution of `values`, one step line per set.
15
14
 
16
15
  A step line through the sorted values of each set: `stat` `proportion`, `count` or
17
16
  `percent`; `complementary` plots 1 − F. `color`: one, a list (one per set) or a
18
17
  dict by set name.
19
18
 
19
+ | Parameter | Meaning |
20
+ |---|---|
21
+ | `values` | The samples: one array, or several sets (a dict of name to values or a list of arrays), or a column name of `data`. |
22
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
23
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
24
+
20
25
  ## Example
21
26
 
22
27
  ```python
@@ -18,6 +18,13 @@ Markers only with `marker=`; `y_error_style="band"` fills the band between the y
18
18
  error ends instead. With replicates, `estimate` and `interval` draw points at their
19
19
  estimates with bars of their interval (a point plot; [summaries](../api.md#summaries-estimate-interval)).
20
20
 
21
+ | Parameter | Meaning |
22
+ |---|---|
23
+ | `x` | The x of each point: numbers, dates or categories (drawn at their index among their own), or a column name of `data`. |
24
+ | `y` | The y of each point, as `x` takes them. |
25
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
26
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
27
+
21
28
  ## Example
22
29
 
23
30
  ```python
@@ -0,0 +1,40 @@
1
+ # facet
2
+
3
+ <!-- written by tools/gen_docs.py from plot_io's docstrings: do not edit -->
4
+
5
+ [Plot types](../api.md#plot-types) · made by `plt.facet`
6
+
7
+ ```python
8
+ plt.facet(data, col=None, row=None, wrap=None, share="grid", order=None,
9
+ title_format="{name} = {value}", colorbar=None, **figure_settings) -> tuple
10
+ ```
11
+
12
+ Small multiples: a figure with one plot per value of `col` (and `row`), and the
13
+ [`FacetSet`](../reference/sets.md#facetset) of its panels. The panels' color axes are shared
14
+ (`share_color="all"` unless given), their size axes likewise (`share_size="all"`,
15
+ with one size key), and one legend on the right holds their entries
16
+ (`share_legend="all"` unless given).
17
+
18
+ | Parameter | Meaning |
19
+ |---|---|
20
+ | `data` | The table: a dict of columns, a pandas or polars data frame, or a numpy structured array. |
21
+ | `col` | The column whose values make the columns of panels. |
22
+ | `row` | The column whose values make the rows of panels. |
23
+ | `wrap` | Wrap the `col` panels into rows of this many (without `row`). |
24
+ | `order` | The order of a column's values, `{column_name: [values]}` (values not listed follow); unset: a categorical column's categories, else the order of appearance. |
25
+ | `share` | The figure's `share`: which panels share their x and y axes. |
26
+ | `title_format` | Each panel's title, with `{name}` and `{value}` filled in (joined by `", "` with both `row` and `col`). |
27
+ | `colorbar` | `"right"`, `"left"`, `"top"` or `"bottom"`: one colorbar beside the panels (in the lanes, `figure.add_colorbar`) for their color axes; `None`: none. |
28
+ | `**figure_settings` | Settings of `Figure`. |
29
+
30
+ ## Example
31
+
32
+ ```python
33
+ rng = random.Random(1)
34
+ df = {"x": [rng.gauss(0, 1) for _ in range(150)], "condition": ["a", "b", "c"] * 50}
35
+ df["y"] = [v + rng.gauss(0, 0.5) for v in df["x"]]
36
+ fig, panels = plt.facet(df, col="condition", width=120, height=120)
37
+ panels.scatter("x", "y")
38
+ ```
39
+
40
+ ![facet](../images/facet.svg)
@@ -10,15 +10,22 @@ p.fill(x, y1, y2=0.0, *, data=None, group=None, group_order=None, group_missing=
10
10
  group_colors=None, **settings) -> Fill
11
11
  ```
12
12
 
13
- The area between `y1` and `y2` (a sequence or a constant) along `x`;
14
- `orientation="horizontal"` fills between x curves along y (`fill(y, x1, x2)`).
13
+ The area between `y1` and `y2` along `x`; `orientation="horizontal"` fills
14
+ between x curves along y (`fill(y, x1, x2)`).
15
15
 
16
- `y1` may be two columns `[upper, lower]` (or an `(n, 2)` buffer).
17
16
  `interpolation` and `missing` work as for [`Line`](line.md), on both edges (a point is
18
17
  missing when x, y1 or y2 is), so a band with the settings of its line matches it,
19
18
  horizontal ones included. `color_below` colors the parts where `y1` is below `y2`
20
19
  (a difference between two curves, each side in its color).
21
20
 
21
+ | Parameter | Meaning |
22
+ |---|---|
23
+ | `x` | The positions along the curves: numbers, dates or categories, or a column name of `data`. |
24
+ | `y1` | One edge: a sequence, a constant or a column name of `data`; or both edges, as two columns `[upper, lower]` or an `(n, 2)` buffer. |
25
+ | `y2` | The other edge: a sequence, a constant or a column name of `data`. |
26
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
27
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
28
+
22
29
  ## Example
23
30
 
24
31
  ```python
@@ -13,6 +13,12 @@ Gene models (BED12): `Bed` with `kind="genes"`, rows expanded and names on.
13
13
 
14
14
  Filled solid without outlines; the settings are [`Bed`](bed.md)'s, its own defaults below.
15
15
 
16
+ | Parameter | Meaning |
17
+ |---|---|
18
+ | `reader` | The gene models: an interval reader (bigBed, BED), a path (opened with gwseq_io) or plain BED12 data as `Bed` takes it (a dict of columns, a DataFrame or rows). |
19
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
20
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
21
+
16
22
  ## Example
17
23
 
18
24
  ```python
@@ -9,9 +9,8 @@ plt.Gtf(reader, *, plot=None, **settings)
9
9
  p.gtf(reader, **settings) -> Gtf
10
10
  ```
11
11
 
12
- Gene models of a GTF or GFF3 reader (`read_entries(model=)`) or path: `Genes`, one
13
- model per gene (its transcripts' exons merged) or per transcript, or plain BED12 data
14
- as `Genes` takes it.
12
+ Gene models of a GTF or GFF3 annotation (read with `read_entries(model=)`):
13
+ `Genes`, one model per gene (its transcripts' exons merged) or per transcript.
15
14
 
16
15
  A path is a bgzipped, indexed GTF or GFF3 (`"gencode.gtf.gz"`; `gwseq_io.sort_gtf`
17
16
  makes one from any GTF; [readers](../api.md#readers)). The transcripts overlapping the region come whole,
@@ -22,6 +21,12 @@ named by `transcript_name`. An id names what has no name. `gene_type` and
22
21
  `transcript_type` keep those biotypes. A [`Bed`](bed.md) or [`Genes`](genes.md) given a GTF
23
22
  reader raises `TypeError` pointing here.
24
23
 
24
+ | Parameter | Meaning |
25
+ |---|---|
26
+ | `reader` | The annotation: a GTF or GFF3 reader, a path to a bgzipped, indexed GTF or GFF3, or plain BED12 data as `Genes` takes it. |
27
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
28
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
29
+
25
30
  ## Example
26
31
 
27
32
  ```python
@@ -10,18 +10,24 @@ p.heatmap(values, x=None, y=None, *, data=None, group=None, group_order=None,
10
10
  group_missing=None, group_colors=None, **settings) -> Heatmap
11
11
  ```
12
12
 
13
- A grid of values (rows first) as colored cells; `x`/`y` give cell labels,
13
+ A grid of `values`, rows first, as colored cells; `x`/`y` give cell labels,
14
14
  centres or edges.
15
15
 
16
- A 3-D `(h, w, 3|4)` grid is drawn as colors. `x`/`y`: `None` (cell indices),
17
- labels (a category axis), n cell centres or n + 1 edges (uneven spacing and any axis
18
- scale allowed). `color_map`, `color_limits` and `color_scale` configure the
16
+ `color_map`, `color_limits` and `color_scale` configure the
19
17
  series' [color axis](../api.md#6-color-and-size-axes). `value_labels=True` writes each value, formatted by
20
18
  `value_label_format` (any [number format](../api.md#number-formats); `"auto"`: 3
21
19
  significant digits, the same decimals for all cells), in black or white, whichever
22
20
  contrasts more (at most 2,500 cells unless `value_labels="all"`). `kind`:
23
21
  `image`, `cells` or `smooth`.
24
22
 
23
+ | Parameter | Meaning |
24
+ |---|---|
25
+ | `values` | The grid, rows first: a 2-D sequence or buffer of numbers, or a 3-D `(h, w, 3\|4)` one drawn as colors. |
26
+ | `x` | The columns: `None` (cell indices), labels (a category axis), n cell centres or n + 1 edges (uneven spacing and any axis scale allowed). |
27
+ | `y` | The rows, as `x` takes them. |
28
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
29
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
30
+
25
31
  ## Example
26
32
 
27
33
  ```python
@@ -16,9 +16,16 @@ the axes width. The lattice is laid out in page units for the axes the layout p
16
16
  exactly whatever the axes' aspect.
17
17
 
18
18
  The counts depend on the axes, and the color axis on the counts: the layout counts again
19
- when a round places the axes differently ([layout](../api.md#layout)). Points outside the
19
+ when a round places the axes elsewhere ([layout](../api.md#layout)). Points outside the
20
20
  axes are not counted. Colored by `color_map`; a colorbar source.
21
21
 
22
+ | Parameter | Meaning |
23
+ |---|---|
24
+ | `x` | The x of each point (numbers), or a column name of `data`. |
25
+ | `y` | The y of each point (numbers), or a column name of `data`. |
26
+ | `plot` | The plot to draw on; `None`: a new plot and figure, which take the plot and figure settings among `settings`. |
27
+ | `settings` | The series' settings (with `plot=None`, also the new plot's and figure's). |
28
+
22
29
  ## Example
23
30
 
24
31
  ```python