plot-io 0.13.0__tar.gz → 0.14.0__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.
- {plot_io-0.13.0 → plot_io-0.14.0}/PKG-INFO +2 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/api.md +49 -49
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/area.md +9 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/bar.md +8 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/bed.md +9 -7
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/bigwig.md +11 -9
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/box.md +9 -4
- plot_io-0.14.0/docs/plots/clustermap.md +42 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/contour.md +9 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/dendrogram.md +15 -8
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/dots.md +12 -5
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/ecdf.md +7 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/errorbar.md +7 -0
- plot_io-0.14.0/docs/plots/facet.md +40 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/fill.md +10 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/genes.md +6 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/gtf.md +8 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/heatmap.md +10 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/hexbin.md +8 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/hic.md +8 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/hist.md +7 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/hist2d.md +8 -1
- plot_io-0.14.0/docs/plots/joint.md +35 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/kde.md +7 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/kde2d.md +7 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/line.md +9 -4
- plot_io-0.14.0/docs/plots/linkage.md +35 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/links.md +9 -6
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/ma.md +18 -8
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/manhattan.md +15 -7
- plot_io-0.14.0/docs/plots/pairs.md +34 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/pie.md +7 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/qq.md +13 -6
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/raincloud.md +14 -8
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/regression.md +10 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/scatter.md +7 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/site_heatmap.md +12 -11
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/site_profile.md +10 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/stem.md +9 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/strip.md +12 -5
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/swarm.md +8 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/violin.md +9 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/plots/volcano.md +13 -5
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/axis.md +11 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/color_axes.md +159 -68
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/colorbars.md +11 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/figure.md +134 -55
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/legends.md +11 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/plot.md +127 -26
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/titles.md +17 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/tracks.md +15 -9
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/__init__.py +4 -2
- plot_io-0.14.0/plot_io/_methods.py +10213 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/axis.py +98 -6
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/colorbar.py +42 -7
- plot_io-0.14.0/plot_io/colors/__init__.py +70 -0
- {plot_io-0.13.0/plot_io/color → plot_io-0.14.0/plot_io/colors}/maps.py +104 -59
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/decorations.py +2 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/density.py +25 -9
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/ext.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/facets.py +71 -9
- plot_io-0.14.0/plot_io/figure.py +1408 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/contacts.py +50 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/intervals.py +20 -10
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/layout.py +13 -9
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/links.py +22 -10
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/series.py +16 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/signal.py +76 -12
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/sites.py +83 -22
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/groups.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/clustermap.py +19 -12
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/dendrogram.py +24 -10
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/grids.py +24 -17
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/qq.py +14 -7
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/raincloud.py +23 -10
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/tree.py +23 -16
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/volcano.py +49 -19
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/hints.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/labels.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/base.py +26 -8
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/context.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/core.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/geoms.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/grammar.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/paint.py +2 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/pipeline.py +3 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/legend.py +4 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/levels.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/mapped.py +14 -2
- plot_io-0.14.0/plot_io/plot.py +1216 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/_util.py +5 -5
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/area.py +9 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/bar.py +18 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/box.py +10 -6
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/catpoints.py +42 -6
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/contour.py +9 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/dots.py +72 -10
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/ecdf.py +6 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/errorbar.py +7 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/errors.py +34 -8
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/fill.py +10 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/heatmap.py +10 -5
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/hexbin.py +18 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/hist.py +12 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/hist2d.py +7 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/kde.py +12 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/kde2d.py +6 -0
- plot_io-0.14.0/plot_io/presets/line.py +206 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/pie.py +31 -9
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/regression.py +10 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/scatter.py +6 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/stem.py +9 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/violin.py +19 -5
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/registry.py +28 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/render.py +3 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/rows.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/settings.py +38 -11
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/sizemaps.py +21 -8
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/styles/__init__.py +11 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/ticks.py +5 -6
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/titles.py +7 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/types.py +1678 -386
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/units.py +13 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/validators.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/values.py +3 -3
- {plot_io-0.13.0 → plot_io-0.14.0}/pyproject.toml +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_bars.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_boundary.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_genome.py +2 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_maps.py +11 -11
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_settings.py +2 -2
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_size_keys.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_tables.py +1 -1
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_values.py +49 -4
- {plot_io-0.13.0 → plot_io-0.14.0}/tools/gen_api.py +215 -24
- {plot_io-0.13.0 → plot_io-0.14.0}/tools/gen_docs.py +76 -9
- plot_io-0.13.0/docs/plots/clustermap.md +0 -34
- plot_io-0.13.0/docs/plots/facet.md +0 -30
- plot_io-0.13.0/docs/plots/joint.md +0 -29
- plot_io-0.13.0/docs/plots/linkage.md +0 -34
- plot_io-0.13.0/docs/plots/pairs.md +0 -31
- plot_io-0.13.0/plot_io/_methods.py +0 -1696
- plot_io-0.13.0/plot_io/color/__init__.py +0 -3
- plot_io-0.13.0/plot_io/figure.py +0 -788
- plot_io-0.13.0/plot_io/plot.py +0 -597
- plot_io-0.13.0/plot_io/presets/line.py +0 -143
- {plot_io-0.13.0 → plot_io-0.14.0}/LICENSE +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/README.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/annotated.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/bars.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/box_plots.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/colorbars.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/density.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/distributions.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/dots.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/error_bars.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/facets.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/genome_matrices.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/genome_regions.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/genome_tracks.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/grids2d.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/groups.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/heatmap.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/helpers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/large_data.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/layouts.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/levels.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/line_band.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/scales.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/scatter_groups.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/shared_colorbar.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/shared_legend.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/shared_sizes.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/styles.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/time_twin.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/titles.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/units.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples/variable_fonts.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/examples.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/from_matplotlib.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/canvas.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/decorations.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/figure_rows.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/reference/sets.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/docs/tutorial.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/hatch_build.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/README.md +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/__init__.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/__main__.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/_api.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/kernels.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/manifest.json +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/alloc.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/cluster.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/colormap.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/math.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/plio.h +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/plio_api.h +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/plot.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/rt.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/signatures.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/sort.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/_native/src/stats.c +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/boxes.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/canvas.py +0 -0
- {plot_io-0.13.0/plot_io/color → plot_io-0.14.0/plot_io/colors}/data.py +0 -0
- {plot_io-0.13.0/plot_io/color → plot_io-0.14.0/plot_io/colors}/values.py +0 -0
- {plot_io-0.13.0/plot_io/color → plot_io-0.14.0/plot_io/colors}/variants.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/columns.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/defaults.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/formatters.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/__init__.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/adapters.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/combine.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/lanes.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/pack.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/readers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/regions.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/scale.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/sources.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/genome/testing.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/geometry.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/guides.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/helpers/__init__.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/kernels.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/__init__.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/positions.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layers/stats.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/layout.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/limits.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/lines.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/markers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/markup.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/numbers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/occupancy.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/__init__.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/presets/curves.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/py.typed +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/scales.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/seams.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/shapes.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/sharing.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/spec.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/states.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/styles/library.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/tables.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/text.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/times.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/plot_io/transform.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/fonts/VarTest.ttf +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/fonts/VioTest-Bold.ttf +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/fonts/VioTest-Regular.ttf +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/fuzz_native.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/golden.json +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/helpers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/preset_ref.json +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/recording.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/stats_reference.json +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_api.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_box.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_colorbars.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_decorations.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_defaults.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_density.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_distributions.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_docs.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_dots.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_edge_cases.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_entry.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_figure_title.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_fonts.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_geometry.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_golden.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_grids.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_heatmap.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_invariants.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_jxl_output.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_layers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_layout.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_limits.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_markers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_markup.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_native.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_numbers.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_occupancy.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_output.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_pie.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_reflines.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_registry.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_rows.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_series.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_settings_fuzz.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_shared_legends.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_sharing.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_simplify.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_stats.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_style_settings.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_style_types.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_styles.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_ticks.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_time_twin.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_titles.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_transform.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_typing.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_units.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/test_vocabulary.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tests/typing/user_code.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tools/build_native.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tools/settings_doc.py +0 -0
- {plot_io-0.13.0 → plot_io-0.14.0}/tools/zig.lock +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: plot_io
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.14.0
|
|
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>
|
|
7
7
|
License-Expression: BSD-3-Clause
|
|
8
8
|
License-File: LICENSE
|
|
9
9
|
Requires-Python: >=3.11
|
|
10
|
-
Requires-Dist: vec-io<0.
|
|
10
|
+
Requires-Dist: vec-io<0.9,>=0.8
|
|
11
11
|
Provides-Extra: dev
|
|
12
12
|
Requires-Dist: mypy; extra == 'dev'
|
|
13
13
|
Requires-Dist: ruff; extra == 'dev'
|
|
@@ -109,12 +109,12 @@ one in [reference/](#reference); worked examples are in [examples.md](examples.m
|
|
|
109
109
|
(how a family is found: [Figure](reference/figure.md#figure)). A line of text is
|
|
110
110
|
`line_height` tall (a multiple of the font size; default 1), the glyphs centered in it.
|
|
111
111
|
* **Names.** `plt.` holds the figure and plot classes, the plot types, the value types
|
|
112
|
-
(`ColorAxis`, `SizeAxis`, `ColorMap`, `SizeMap`, `Density`, `Errors`,
|
|
113
|
-
`
|
|
112
|
+
(`ColorAxis`, `SizeAxis`, `ColorMap`, `SizeMap`, `Density`, `Errors`, `Span`, `Simplify`),
|
|
113
|
+
`facet`, `every`, `color`, `registry`, `set_style`, `use_style` and `DEFAULTS`
|
|
114
114
|
([modules](#12-modules)). Enum-like settings take strings.
|
|
115
|
-
* **Registries.** `plt.registry.color_maps`, `markers`, `styles` and `layers`
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
* **Registries.** `plt.registry.color_maps`, `markers`, `styles` and `layers` (plot types)
|
|
116
|
+
each have `add(name, value)`, `names()`, `get(name)` (`ValueError` for an unknown name)
|
|
117
|
+
and `name in registry.…`; `colors` (fixed): `names()`, `variants()`.
|
|
118
118
|
* **Guides.** Titles, legends and colorbars follow one pattern: a figure has
|
|
119
119
|
`fig.add_title`, `fig.add_legend` and `fig.add_colorbar` (in the lanes beside a set of
|
|
120
120
|
plots, `side=`), and `fig.colorbar_area` and `fig.size_legend` (in their own grid area,
|
|
@@ -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
|
|
618
|
-
| [Fill](plots/fill.md) | `plt.Fill`, `p.fill`, `fig.fill` | The area between `y1` and `y2`
|
|
619
|
-
| [Area](plots/area.md) | `plt.Area`, `p.area`, `fig.area` | Areas of the layers `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
|
|
622
|
-
| [Kde](plots/kde.md) | `plt.Kde`, `p.kde`, `fig.kde` | A Gaussian kernel density estimate of `values
|
|
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
|
|
625
|
-
| [Box](plots/box.md) | `plt.Box`, `p.box`, `fig.box` | Box plots of `values
|
|
626
|
-
| [Violin](plots/violin.md) | `plt.Violin`, `p.violin`, `fig.violin` | Violins of `values
|
|
627
|
-
| [Strip](plots/strip.md) | `plt.Strip`, `p.strip`, `fig.strip` | Points of each category's values, spread across the slot by random jitter
|
|
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
|
|
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
|
|
632
|
-
| [Heatmap](plots/heatmap.md) | `plt.Heatmap`, `p.heatmap`, `fig.heatmap` | A grid of values
|
|
633
|
-
| [Hist2d](plots/hist2d.md) | `plt.Hist2d`, `p.hist2d`, `fig.hist2d` | A 2-D histogram of points `(x, y)`: counts in bins
|
|
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`
|
|
636
|
-
| [Pie](plots/pie.md) | `plt.Pie`, `p.pie`, `fig.pie` | A pie (or donut, with `hole`) of `values
|
|
637
|
-
| [Dots](plots/dots.md) | `plt.Dots`, `p.dots`, `fig.dots` | One marker per cell of a grid
|
|
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
|
|
639
|
-
| [Raincloud](plots/raincloud.md) | `plt.Raincloud`, `p.raincloud`, `fig.raincloud` | Rainclouds
|
|
640
|
-
| [Volcano](plots/volcano.md) | `plt.Volcano`, `p.volcano`, `fig.volcano` | Differential results
|
|
641
|
-
| [Ma](plots/ma.md) | `plt.Ma`, `p.ma`, `fig.ma` | An MA plot
|
|
642
|
-
| [Manhattan](plots/manhattan.md) | `plt.Manhattan`, `p.manhattan`, `fig.manhattan` | Genome-wide association results
|
|
643
|
-
| [Dendrogram](plots/dendrogram.md) | `plt.Dendrogram`, `p.dendrogram`, `fig.dendrogram` | The merges of
|
|
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
|
|
652
|
-
| [joint](plots/joint.md) | `plt.joint` | A joint plot:
|
|
653
|
-
| [pairs](plots/pairs.md) | `plt.pairs` | Every pair of
|
|
654
|
-
| [clustermap](plots/clustermap.md) | `plt.clustermap` | A heatmap
|
|
655
|
-
| [linkage](plots/linkage.md) | `plt.linkage` | The `Tree` of a hierarchical clustering of the rows
|
|
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
|
|
@@ -770,14 +770,14 @@ legend (`size_key="legend"`); `fig.size_legend` gives it its own area
|
|
|
770
770
|
0.05, 0.1–0.9 and 0.95, white at 0 and black at 1, interpolated in Oklab; a bare name is
|
|
771
771
|
0.5. They take precedence over CSS's names (`"red"` is `#d25b4a` in the default variant,
|
|
772
772
|
`forest`, and `#fb2c36` in `base`; `"brown"` is Brown 0.5, not CSS's `#a52a2a`);
|
|
773
|
-
`
|
|
773
|
+
`plt.color()` gives the color drawn (a `vec_io.Color`); `plt.registry.colors` the names.
|
|
774
774
|
* **Color variants.** Nine variants of every scale: `base` (Tailwind's), `vivid`, `pastel`,
|
|
775
|
-
`forest`, `dim`, `arctic`, `desert`, `dusty`, `neon`. A variant word before a color or
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
775
|
+
`forest`, `dim`, `arctic`, `desert`, `dusty`, `neon`. A variant word before a color or map
|
|
776
|
+
name picks one (`"pastel tab10_custom"`); `color_variant` (inherited: figure, plot, series
|
|
777
|
+
or style; default `"forest"`; the library styles set `"base"`, the libraries' own colors)
|
|
778
|
+
is the variant of every named color written without one: bare names, the series colors
|
|
779
|
+
(`"C0"`), maps from names (`"rainbow_llhh"`) and the style's colors. Hex, `rgb()`, CSS
|
|
780
|
+
names, `CMYK` and `Spot` never change; `explain()` names the variant used.
|
|
781
781
|
|
|
782
782
|

|
|
783
783
|
|
|
@@ -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
|
|
1117
|
-
| [Bed](plots/bed.md) | `plt.Bed`, `p.bed`, `fig.bed` | Intervals over the region
|
|
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
|
|
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
|
|
1123
|
-
| [SiteProfile](plots/site_profile.md) | `plt.SiteProfile`, `p.site_profile`, `fig.site_profile` | The column mean (or median) of a signal around sites
|
|
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
|
|
@@ -1186,7 +1186,7 @@ plt.registry.styles.add("seaborn-whitegrid", {
|
|
|
1186
1186
|
`plt.__all__` is the API; `plt.Axis`, `plt.Legend`, `plt.Colorbar` and `plt.Title` are there
|
|
1187
1187
|
for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_io.ext`,
|
|
1188
1188
|
`plot_io.genome` (`parse_region`, `Region`, `combine`), `plot_io.genome.readers`,
|
|
1189
|
-
`plot_io.genome.testing`, `plot_io.types`, `plot_io.markers`, `plot_io.
|
|
1189
|
+
`plot_io.genome.testing`, `plot_io.types`, `plot_io.markers`, `plot_io.colors.maps`,
|
|
1190
1190
|
`plot_io.canvas`, and those of the types calls return (`plot_io.facets`,
|
|
1191
1191
|
`plot_io.helpers`, `plot_io.tables`, `plot_io.colorbar`). The others are internal.
|
|
1192
1192
|
|
|
@@ -1201,7 +1201,7 @@ for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_
|
|
|
1201
1201
|
| [titles](reference/titles.md) | [`Title`](reference/titles.md#title), [`FigureTitle`](reference/titles.md#figuretitle) |
|
|
1202
1202
|
| [legends](reference/legends.md) | [`Legend`](reference/legends.md#legend), [`FigureLegend`](reference/legends.md#figurelegend), [`SizeLegend`](reference/legends.md#sizelegend) |
|
|
1203
1203
|
| [colorbars](reference/colorbars.md) | [`Colorbar`](reference/colorbars.md#colorbar), [`FigureColorbar`](reference/colorbars.md#figurecolorbar) |
|
|
1204
|
-
| [color axes](reference/color_axes.md) | [`ColorAxis`](reference/color_axes.md#coloraxis), [`SizeAxis`](reference/color_axes.md#sizeaxis), [`ColorMap`](reference/color_axes.md#colormap), [`SizeMap`](reference/color_axes.md#sizemap), [`Density`](reference/color_axes.md#density) |
|
|
1204
|
+
| [color axes](reference/color_axes.md) | [`ColorAxis`](reference/color_axes.md#coloraxis), [`SizeAxis`](reference/color_axes.md#sizeaxis), [`ColorMap`](reference/color_axes.md#colormap), [`SizeMap`](reference/color_axes.md#sizemap), [`Density`](reference/color_axes.md#density), [`color`](reference/color_axes.md#color) |
|
|
1205
1205
|
| [decorations](reference/decorations.md) | [`HLine`](reference/decorations.md#hline), [`AxLine`](reference/decorations.md#axline), [`HSpan`](reference/decorations.md#hspan), [`Text`](reference/decorations.md#text), [`Annotate`](reference/decorations.md#annotate), [`Bracket`](reference/decorations.md#bracket) |
|
|
1206
1206
|
| [figure rows](reference/figure_rows.md) | [`FigureVLine`](reference/figure_rows.md#figurevline), [`FigureVSpan`](reference/figure_rows.md#figurevspan), [`FigureGroup`](reference/figure_rows.md#figuregroup) |
|
|
1207
1207
|
| [tracks](reference/tracks.md) | [`Tracks`](reference/tracks.md#tracks), [`Track`](reference/tracks.md#track) |
|
|
@@ -1219,8 +1219,8 @@ for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_
|
|
|
1219
1219
|
| `axis.py` | Axes: settings (`Axis`) and their state while a figure is drawn (`AxisState`: scale, limits, ticks, mapping to the page). |
|
|
1220
1220
|
| `boxes.py` | The box tree of a plot: what surrounds its axes, side by side, as ordered nodes. |
|
|
1221
1221
|
| `canvas.py` | The canvas plot_io draws on, and a canvas that records the drawing. |
|
|
1222
|
-
| `color/` | Colors: values and named scales (`values`), color maps, every set of colors with its kind: qualitative, sequential, diverging, cyclic (`maps`), and the bundled data (`data`). Color space conversions are vec_io's (`paint`). |
|
|
1223
1222
|
| `colorbar.py` | Colorbars: the guides of color axes, and size keys: the guides of size axes. |
|
|
1223
|
+
| `colors/` | Colors: values and named scales (`values`), color maps, every set of colors with its kind: qualitative, sequential, diverging, cyclic (`maps`), and the bundled data (`data`). Color space conversions are vec_io's (`paint`). |
|
|
1224
1224
|
| `columns.py` | Data intake: the data arguments of a plot type's call as columns. |
|
|
1225
1225
|
| `decorations.py` | Decorations: reference lines, spans, text, annotations and brackets on a plot. |
|
|
1226
1226
|
| `defaults.py` | Every default setting of plot_io, in one place: the default look. |
|
|
@@ -1250,7 +1250,7 @@ for annotations and `isinstance`. Public modules too: `plot_io.registry`, `plot_
|
|
|
1250
1250
|
| `occupancy.py` | What the series cover inside the axes, on a coarse grid: used to place legends. |
|
|
1251
1251
|
| `plot.py` | Plots: one area of a figure, with axes, series, title, legend and colorbars. |
|
|
1252
1252
|
| `presets/` | The plot types: each a `Series` declared by a `SPEC` (its data, layers and what the axes need, built by `grammar`) or with a `layers()` of its own, registered as a `Plot` method (`registry.layers.add`). |
|
|
1253
|
-
| `registry.py` | The registries of named things: `color_maps`, `markers`, `styles` and `layers` (plot types), each with `add(name, value)`, `names()` and `get(name)
|
|
1253
|
+
| `registry.py` | The registries of named things: `color_maps`, `markers`, `styles` and `layers` (plot types), each with `add(name, value)`, `names()` and `get(name)`; `colors`, the named color scales (fixed: `names()`, `variants()`, `get(name)`). |
|
|
1254
1254
|
| `render.py` | Drawing and output of figures. |
|
|
1255
1255
|
| `rows.py` | Rows of a figure: row labels in a band left of the plots, groups of rows, and lines and bands drawn through several rows. |
|
|
1256
1256
|
| `scales.py` | Scales: a monotone function from data to a position line. |
|
|
@@ -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`
|
|
14
|
-
|
|
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
|
|
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
|
|
13
|
-
rows.
|
|
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
|
|
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
|
|
13
|
-
|
|
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
|
|
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
|
|
14
|
-
(categories `0, 1, …` or `categories=`), or one array.
|
|
13
|
+
Box plots of `values`, one box per category.
|
|
15
14
|
|
|
16
|
-
|
|
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
|
+

|
|
@@ -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`
|
|
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
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
+

|
|
@@ -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`
|
|
14
|
-
|
|
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
|