marsilea 0.3.3__tar.gz → 0.3.5__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.
- marsilea-0.3.5/CODE_OF_CONDUCT.md +128 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/PKG-INFO +3 -1
- marsilea-0.3.5/docs/examples/Basics/plot_two_heatmap.py +24 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_arc_diagram.py +0 -1
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_available_plotters.py +2 -2
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_mouse_embryo.py +2 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_seqalign.py +0 -1
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_upset.py +2 -2
- marsilea-0.3.5/docs/examples/Plotters/plot_area.py +18 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/api/index.rst +21 -6
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/conf.py +1 -1
- {marsilea-0.3.3 → marsilea-0.3.5}/pyproject.toml +5 -1
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/__init__.py +4 -2
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/base.py +48 -1
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/layers.py +1 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/_seaborn.py +7 -1
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/area.py +16 -1
- {marsilea-0.3.3 → marsilea-0.3.5}/.github/workflows/build.yaml +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/.github/workflows/deploy_streamlit.yaml +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/.github/workflows/lint.yaml +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/.gitignore +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/.streamlit/config.toml +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/CITATION.cff +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/LICENSE +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/README.md +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/.gitignore +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/Dockerfile +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/Home.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/README.md +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/__init__.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/cmap_selector/__init__.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/cmap_selector/selector.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/data_input.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/example_download.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/initialize.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/main_plots.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/resource.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/saver.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/side_plots.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/state.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/transformation.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/components/upset_example.csv +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/V1.mp4 +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/V2.mp4 +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/annolabels.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/bar.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/box.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/boxen.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/colors.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/dendrogram.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/favicon.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/favicon.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/heatmap.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/heatmap.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/logo.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/mark_map.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/mark_map.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/point.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/sized_heatmap.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/sized_heatmap.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/sized_onlymap.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/strip.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/swarm.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/violin.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/img/x-layout.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/pages/01 Simple_Heatmap.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/pages/02 X-Layout_Heatmap.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/pages/03 Upsetplot.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/pages/04 Manual.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/requirements.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/script/heatmap_data.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/script/plot_layer_example_images.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/script/plotter_example_images.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/set_data_memberships.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/test.xlsx +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/test_data/Stats_plot.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/test_data/example_data.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/test_data/number.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/test_data/row_labels.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/test_data/set_data_memberships.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/app/upset.xlsx +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/data/IMDB.csv +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/data/PATIENT_DATA_oncoprint.tsv +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/data/pbmc3k.h5ad +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/Makefile +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/README.md +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/.gitignore +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Basics/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Basics/plot_adv_heatmap.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Basics/plot_heatmap.py +0 -0
- {marsilea-0.3.3/docs/examples/Gallery → marsilea-0.3.5/docs/examples/Basics}/plot_stacked_bar.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_bivariate_dist.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_oil_well.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_oncoprint.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_pbmc3k.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Gallery/plot_sc_multiomics.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_anno_labels.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_arc.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_bar.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_box.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_boxen.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_center_bar.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_chunk.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_color_mesh.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_colors.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_fixed_chunk.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_labels.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_marker_mesh.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_numbers.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_point.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_seq_logo.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_sized_mesh.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_stack_bar.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_strip.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_swarm.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_text_mesh.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_title.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/Plotters/plot_violin.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/examples/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/customization/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/customization/plot_add_border.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/customization/plot_get_axes.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/dendrogram/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/dendrogram/plot_color_dendrogram.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/dendrogram/plot_dendrogram_control.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/layout/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/layout/plot_adjust_figure_size.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/layout/plot_labeling.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/layout/plot_margin.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/legends/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/legends/plot_disable_legend.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/legends/plot_legends.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/save/README.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/save/plot.pdf +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/save/plot.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/how_to/save/plot_save.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/make.bat +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/requirements.txt +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/.gitignore +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/_static/css/custom.css +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/_templates/autosummary.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/img/code_example.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/img/cover.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/img/marsilea-renderplan-logic.drawio.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/index.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/installation.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/sg_execution_times.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/axes-level.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/concatenation.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/heatmap.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/index.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/intro.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/intro2.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/new_renderplan.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/docs/source/tutorial/upset.rst +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/Logo(1).zip +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/Logo.zip +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/banner-blue.jpg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/banner-dark-gradient.jpg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/banner-dark.jpg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/banner-rice-white.jpg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/banner-white.jpg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo/.DS_Store +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo/Logo.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo/logo.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo//346/265/205/350/223/235/346/270/220/345/217/230.jpg" +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo//346/267/261/350/211/262/350/203/214/346/231/257.jpg" +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo//347/261/263/350/211/262.jpg" +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo//347/272/257/347/231/275.jpg" +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/Logo//350/247/222/345/272/246/346/270/220/345/217/230.jpg" +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo/__MACOSX/Logo/._.DS_Store +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/logo.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/API-interface.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/Snap-1.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/Snap-2.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/Snap-3.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/Stacked bar.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/bivar_kde.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-canvas-size-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-canvas-size.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-location-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-location.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-pad-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-pad.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-plotter-size-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-plotter-size.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-plotter-type-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-change-plotter-type.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-basic.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-skeleton-step1.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-skeleton-step2.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-skeleton-step3.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-skeleton-step4.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-1a-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-1a.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-1b-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-1b.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-2-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-2.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-3-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-3.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-4-code.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/layout-step-4.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/oncoprint.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/upset.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/web-app-screenshot-1.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/img/publication/web-app-screenshot-2.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/readthedocs.yaml +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/marsilea/marsilea_cooking_oils_base.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/marsilea/marsilea_cooking_oils_v1.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/marsilea/marsilea_cooking_oils_v2.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/marsilea_vs_matplotlib.png +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/marsilea_vs_matplotlib.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/matplotlib/matplotlib_cooking_oils_base.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/matplotlib/matplotlib_cooking_oils_v1.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/matplotlib/matplotlib_cooking_oils_v2.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/benchmark/result.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/logo.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/pub_figure.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/pub_figures/bivariate_kde.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/pub_figures/layout-skeleton-step.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/pub_figures/layout-step.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/pub_figures/onco.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/pub_figures/stacked_bar.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/pub_figures/upset.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/publication/arc_diagram.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/publication/bivariate_dist.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/publication/mouse_embryo.svg +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/scripts/x-layout.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/setup.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/_api.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/_deform.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/dataset.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/dendrogram.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/exceptions.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/heatmap.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/layout.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/__init__.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/_images.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/_utils.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/arc.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/bar.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/base.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/bio.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/mesh.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/plotter/text.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/upset.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/marsilea/utils.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/oncoprinter/__init__.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/oncoprinter/core.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/src/oncoprinter/preset.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/tests/test_data_input.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/tests/test_deform.py +0 -0
- {marsilea-0.3.3 → marsilea-0.3.5}/tests/test_mesh.py +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
+
and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
|
26
|
+
overall community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or
|
|
31
|
+
advances of any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email
|
|
35
|
+
address, without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official e-mail address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
yzheng@cemm.at.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series
|
|
86
|
+
of actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or
|
|
93
|
+
permanent ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
+
the community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.0, available at
|
|
119
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
122
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
|
123
|
+
|
|
124
|
+
[homepage]: https://www.contributor-covenant.org
|
|
125
|
+
|
|
126
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
127
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
128
|
+
https://www.contributor-covenant.org/translations.
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: marsilea
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: Create x-layout visualization
|
|
5
5
|
Author: Zhihang Zheng
|
|
6
6
|
Author-email: Mr-Milk <yzheng@cemm.at>
|
|
7
7
|
Requires-Python: >=3.8
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Framework :: Matplotlib
|
|
10
12
|
Requires-Dist: numpy
|
|
11
13
|
Requires-Dist: pandas
|
|
12
14
|
Requires-Dist: matplotlib>=3.6
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Two Heatmaps
|
|
3
|
+
============
|
|
4
|
+
|
|
5
|
+
This example shows how to plot two heatmaps side by side.
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
# %%
|
|
10
|
+
import numpy as np
|
|
11
|
+
import marsilea as ma
|
|
12
|
+
|
|
13
|
+
data1 = np.random.randint(0, 10, (20, 10))
|
|
14
|
+
data2 = np.random.randint(0, 10, (10, 20))
|
|
15
|
+
|
|
16
|
+
# %%
|
|
17
|
+
h1 = ma.Heatmap(data1, linewidth=1, cmap="Reds", label="Heatmap 1")
|
|
18
|
+
h1.add_dendrogram("left")
|
|
19
|
+
h2 = ma.Heatmap(data2, linewidth=1, cmap="Blues", label="Heatmap 2")
|
|
20
|
+
h2.add_dendrogram("right")
|
|
21
|
+
(h1 + .2 + h2).render()
|
|
22
|
+
|
|
23
|
+
# %%
|
|
24
|
+
(h1 / .2 / h2).render()
|
|
@@ -56,7 +56,7 @@ plotters = {
|
|
|
56
56
|
"Layers Mesh": ma.layers.LayersMesh(data2d, pieces=pieces),
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
canvas = ma.
|
|
59
|
+
canvas = ma.ZeroHeightCluster(data2d, width=5)
|
|
60
60
|
for title, plotter in plotters.items():
|
|
61
61
|
canvas.add_bottom(plotter, name=title)
|
|
62
62
|
|
|
@@ -158,7 +158,7 @@ seqlogo = mp.SeqLogo(matrix, color_encode=colors)
|
|
|
158
158
|
arc = mp.Arc([1, 2, 3, 4, 5], [(1, 5), (2, 3), (1, 2), (4, 5)],
|
|
159
159
|
weights=weights, width=(2, 5), colors="#534D56")
|
|
160
160
|
|
|
161
|
-
canvas4 = ma.
|
|
161
|
+
canvas4 = ma.ZeroHeightCluster(rng.standard_normal((10, 5)), width=4)
|
|
162
162
|
canvas4.add_top(seqlogo, size=2, name="Sequence Logo")
|
|
163
163
|
canvas4.add_top(arc, size=1, pad=.2, name="Arc Diagram")
|
|
164
164
|
canvas4.render()
|
|
@@ -109,6 +109,7 @@ for n in cell_types:
|
|
|
109
109
|
y_ax.text(0.5, 0, n, va="top", ha="center", rotation=90, transform=y_ax.transAxes)
|
|
110
110
|
|
|
111
111
|
|
|
112
|
+
# sphinx_gallery_ignore_start
|
|
112
113
|
#%%
|
|
113
114
|
if '__file__' in globals():
|
|
114
115
|
from pathlib import Path
|
|
@@ -118,3 +119,4 @@ if '__file__' in globals():
|
|
|
118
119
|
save_path = Path(__file__).parent / "imgs"
|
|
119
120
|
plt.savefig(save_path / "mouse_embryo.svg", bbox_inches="tight")
|
|
120
121
|
plt.savefig(save_path / "mouse_embryo.png", dpi=300, bbox_inches="tight")
|
|
122
|
+
# sphinx_gallery_ignore_end
|
|
@@ -8,7 +8,7 @@ IMDB Top 1000 Movies
|
|
|
8
8
|
from matplotlib import pyplot as plt
|
|
9
9
|
|
|
10
10
|
import marsilea as ma
|
|
11
|
-
from marsilea.upset import UpsetData
|
|
11
|
+
from marsilea.upset import UpsetData
|
|
12
12
|
|
|
13
13
|
# sphinx_gallery_start_ignore
|
|
14
14
|
import mpl_fontkit as fk
|
|
@@ -32,7 +32,7 @@ us.highlight_subsets(min_cardinality=48, facecolor="#D0104C",
|
|
|
32
32
|
us.highlight_subsets(min_cardinality=32, edgecolor="green", edgewidth=1.5,
|
|
33
33
|
label="Larger than 32")
|
|
34
34
|
us.add_items_attr("left", "Revenue (Millions)", "strip", pad=.2, size=.5,
|
|
35
|
-
plot_kws=dict(
|
|
35
|
+
plot_kws=dict(color="#24936E", size=1.2, label="Revenue\n(Millions)"))
|
|
36
36
|
us.add_items_attr("right", "Rating", "box",
|
|
37
37
|
pad=.2,
|
|
38
38
|
plot_kws=dict(color="orange", linewidth=1, fliersize=1))
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Area
|
|
3
|
+
====
|
|
4
|
+
|
|
5
|
+
:class:`~marsilea.plotter.Area` is a plotter for drawing area plot.
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
# %%
|
|
10
|
+
from marsilea.plotter import Area
|
|
11
|
+
|
|
12
|
+
# %%
|
|
13
|
+
import numpy as np
|
|
14
|
+
import matplotlib.pyplot as plt
|
|
15
|
+
|
|
16
|
+
_, ax = plt.subplots()
|
|
17
|
+
data = np.random.randint(0, 10, 10) + 1
|
|
18
|
+
Area(data).render(ax)
|
|
@@ -119,6 +119,18 @@ Declarative API Cheat Sheet
|
|
|
119
119
|
|
|
120
120
|
wb.save("output.png", dpi=300)
|
|
121
121
|
|
|
122
|
+
* - :code:`+`
|
|
123
|
+
- Two canvas side by side, number will be added as white space
|
|
124
|
+
- .. code-block:: python
|
|
125
|
+
|
|
126
|
+
(wb1 + 1 + wb2).render()
|
|
127
|
+
|
|
128
|
+
* - :code:`/`
|
|
129
|
+
- Two canvas top and bottom, number will be added as white space
|
|
130
|
+
- .. code-block:: python
|
|
131
|
+
|
|
132
|
+
(wb1 / 1 / wb2).render()
|
|
133
|
+
|
|
122
134
|
|
|
123
135
|
High-Level Visualizations
|
|
124
136
|
=========================
|
|
@@ -216,10 +228,11 @@ Other plots
|
|
|
216
228
|
:template: autosummary.rst
|
|
217
229
|
:nosignatures:
|
|
218
230
|
|
|
231
|
+
Area
|
|
232
|
+
Arc
|
|
219
233
|
Numbers
|
|
220
234
|
StackBar
|
|
221
235
|
CenterBar
|
|
222
|
-
Arc
|
|
223
236
|
SeqLogo
|
|
224
237
|
|
|
225
238
|
|
|
@@ -239,8 +252,8 @@ Text Label
|
|
|
239
252
|
|
|
240
253
|
|
|
241
254
|
|
|
242
|
-
|
|
243
|
-
|
|
255
|
+
Main Canvas
|
|
256
|
+
===========
|
|
244
257
|
|
|
245
258
|
|
|
246
259
|
.. currentmodule:: marsilea.base
|
|
@@ -254,9 +267,11 @@ Base Class
|
|
|
254
267
|
LegendMaker
|
|
255
268
|
ZeroWidth
|
|
256
269
|
ZeroHeight
|
|
270
|
+
ZeroWidthCluster
|
|
271
|
+
ZeroHeightCluster
|
|
257
272
|
|
|
258
273
|
Layout Engine
|
|
259
|
-
|
|
274
|
+
=============
|
|
260
275
|
|
|
261
276
|
.. currentmodule:: marsilea.layout
|
|
262
277
|
.. autosummary::
|
|
@@ -269,7 +284,7 @@ Layout Engine
|
|
|
269
284
|
|
|
270
285
|
|
|
271
286
|
Data Manipulation
|
|
272
|
-
|
|
287
|
+
=================
|
|
273
288
|
|
|
274
289
|
.. currentmodule:: marsilea
|
|
275
290
|
.. autosummary::
|
|
@@ -280,7 +295,7 @@ Data Manipulation
|
|
|
280
295
|
Deformation
|
|
281
296
|
|
|
282
297
|
Render plan
|
|
283
|
-
|
|
298
|
+
===========
|
|
284
299
|
|
|
285
300
|
.. currentmodule:: marsilea.plotter.base
|
|
286
301
|
.. autosummary::
|
|
@@ -91,7 +91,7 @@ def matplotlib_tight_scraper(*args, **kwargs):
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
intersphinx_mapping = {
|
|
94
|
-
'scipy': ('
|
|
94
|
+
'scipy': ('http://docs.scipy.org/doc/scipy/', None),
|
|
95
95
|
'seaborn': ('https://seaborn.pydata.org/', None),
|
|
96
96
|
'matplotlib': ('https://matplotlib.org/stable', None),
|
|
97
97
|
'legendkit': ('https://legendkit.readthedocs.io/en/stable', None),
|
|
@@ -10,7 +10,11 @@ authors = [
|
|
|
10
10
|
]
|
|
11
11
|
license = {file = "LICENSE"}
|
|
12
12
|
readme = "README.md"
|
|
13
|
-
classifiers = [
|
|
13
|
+
classifiers = [
|
|
14
|
+
"License :: OSI Approved :: MIT License",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Framework :: Matplotlib",
|
|
17
|
+
]
|
|
14
18
|
dynamic = ["version", "description"]
|
|
15
19
|
requires-python = ">=3.8"
|
|
16
20
|
urls = {Home="https://github.com/Marsilea-viz/marsilea"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"""Create x-layout visualization"""
|
|
2
2
|
|
|
3
|
-
__version__ = "0.3.
|
|
3
|
+
__version__ = "0.3.5"
|
|
4
4
|
|
|
5
5
|
import marsilea.plotter as plotter
|
|
6
6
|
from ._deform import Deformation
|
|
7
|
-
from .base import WhiteBoard, ClusterBoard,
|
|
7
|
+
from .base import (WhiteBoard, ClusterBoard,
|
|
8
|
+
ZeroWidth, ZeroHeight,
|
|
9
|
+
ZeroWidthCluster, ZeroHeightCluster)
|
|
8
10
|
from .dataset import load_data
|
|
9
11
|
from .dendrogram import Dendrogram, GroupDendrogram
|
|
10
12
|
from .heatmap import Heatmap, SizedHeatmap, CatHeatmap
|
|
@@ -80,7 +80,7 @@ class LegendMaker:
|
|
|
80
80
|
"""
|
|
81
81
|
if name is None:
|
|
82
82
|
name = str(uuid4())
|
|
83
|
-
self._user_legends[name] = legend
|
|
83
|
+
self._user_legends[name] = [legend]
|
|
84
84
|
|
|
85
85
|
def add_legends(
|
|
86
86
|
self,
|
|
@@ -1403,3 +1403,50 @@ class ClusterBoard(WhiteBoard):
|
|
|
1403
1403
|
# add row and col dendrogram
|
|
1404
1404
|
self._render_dendrogram()
|
|
1405
1405
|
self._render_legend()
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
class ZeroWidthCluster(ClusterBoard):
|
|
1409
|
+
"""
|
|
1410
|
+
A utility class to initialize a canvas \
|
|
1411
|
+
with zero width and cluster data
|
|
1412
|
+
|
|
1413
|
+
Parameters
|
|
1414
|
+
----------
|
|
1415
|
+
cluster_data : ndarray
|
|
1416
|
+
The cluster data
|
|
1417
|
+
height : float
|
|
1418
|
+
The height of the main canvas in inches
|
|
1419
|
+
name : str
|
|
1420
|
+
The name of the main canvas
|
|
1421
|
+
margin : float, 4-tuple
|
|
1422
|
+
The margin of the main canvas in inches
|
|
1423
|
+
|
|
1424
|
+
"""
|
|
1425
|
+
|
|
1426
|
+
def __init__(self, cluster_data, height, name=None, margin=0.2):
|
|
1427
|
+
super().__init__(cluster_data=cluster_data, width=0, height=height,
|
|
1428
|
+
name=name, margin=margin, init_main=False)
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
class ZeroHeightCluster(ClusterBoard):
|
|
1432
|
+
"""
|
|
1433
|
+
A utility class to initialize a canvas \
|
|
1434
|
+
with zero height and cluster data
|
|
1435
|
+
|
|
1436
|
+
Parameters
|
|
1437
|
+
----------
|
|
1438
|
+
cluster_data : ndarray
|
|
1439
|
+
The cluster data
|
|
1440
|
+
width : float
|
|
1441
|
+
The width of the main canvas in inches
|
|
1442
|
+
name : str
|
|
1443
|
+
The name of the main canvas
|
|
1444
|
+
margin : float, 4-tuple
|
|
1445
|
+
The margin of the main canvas in inches
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
"""
|
|
1449
|
+
|
|
1450
|
+
def __init__(self, cluster_data, width, name=None, margin=0.2):
|
|
1451
|
+
super().__init__(cluster_data=cluster_data, width=width, height=0,
|
|
1452
|
+
name=name, margin=margin, init_main=False)
|
|
@@ -2,7 +2,7 @@ import pandas as pd
|
|
|
2
2
|
import seaborn
|
|
3
3
|
from legendkit import CatLegend
|
|
4
4
|
from seaborn import color_palette
|
|
5
|
-
from typing import Mapping
|
|
5
|
+
from typing import Mapping, Sequence
|
|
6
6
|
|
|
7
7
|
from .base import StatsBase
|
|
8
8
|
from ..utils import ECHARTS16
|
|
@@ -51,6 +51,8 @@ class _SeabornBase(StatsBase):
|
|
|
51
51
|
# kwargs['palette'] = "dark:C0"
|
|
52
52
|
if palette is not None:
|
|
53
53
|
kwargs["palette"] = palette
|
|
54
|
+
if isinstance(palette, Sequence):
|
|
55
|
+
self.set_params({"palette": palette})
|
|
54
56
|
|
|
55
57
|
kwargs.pop("x", None)
|
|
56
58
|
kwargs.pop("y", None)
|
|
@@ -80,6 +82,7 @@ class _SeabornBase(StatsBase):
|
|
|
80
82
|
ax = spec.ax
|
|
81
83
|
data = spec.data
|
|
82
84
|
gp = spec.group_params
|
|
85
|
+
|
|
83
86
|
if gp is None:
|
|
84
87
|
gp = {}
|
|
85
88
|
x, y = "var", "value"
|
|
@@ -106,6 +109,9 @@ class _SeabornBase(StatsBase):
|
|
|
106
109
|
x, y = y, x
|
|
107
110
|
self.kws["x"] = x
|
|
108
111
|
self.kws["y"] = y
|
|
112
|
+
if spec.params is not None:
|
|
113
|
+
palette = [p.get("palette", "C0") for p in spec.params]
|
|
114
|
+
self.kws["palette"] = palette
|
|
109
115
|
options = {**self.kws, **gp}
|
|
110
116
|
if options.get("palette") is not None:
|
|
111
117
|
options["hue"] = "var"
|
|
@@ -26,6 +26,20 @@ class Area(StatsBase):
|
|
|
26
26
|
Additional configurations for the area plot, \
|
|
27
27
|
see :func:`matplotlib.pyplot.fill_between`
|
|
28
28
|
|
|
29
|
+
Examples
|
|
30
|
+
--------
|
|
31
|
+
.. plot::
|
|
32
|
+
:context: close-figs
|
|
33
|
+
|
|
34
|
+
import numpy as np
|
|
35
|
+
import matplotlib.pyplot as plt
|
|
36
|
+
|
|
37
|
+
from marsilea.plotter import Area
|
|
38
|
+
|
|
39
|
+
_, ax = plt.subplots()
|
|
40
|
+
data = np.random.randint(0, 10, 10) + 1
|
|
41
|
+
Area(data).render(ax)
|
|
42
|
+
|
|
29
43
|
"""
|
|
30
44
|
|
|
31
45
|
def __init__(self, data, color=None, add_outline=True, alpha=.4,
|
|
@@ -46,6 +60,7 @@ class Area(StatsBase):
|
|
|
46
60
|
self.kws = kwargs
|
|
47
61
|
|
|
48
62
|
self.set_data(data)
|
|
63
|
+
self.set_label(label, label_loc, label_props)
|
|
49
64
|
if group_kws is not None:
|
|
50
65
|
self.set_group_params(group_kws)
|
|
51
66
|
|
|
@@ -56,7 +71,7 @@ class Area(StatsBase):
|
|
|
56
71
|
if gp is None:
|
|
57
72
|
gp = {}
|
|
58
73
|
|
|
59
|
-
fill_options = {'
|
|
74
|
+
fill_options = {'color': self.color, 'alpha': self.alpha, **self.kws, **gp}
|
|
60
75
|
line_options = {'color': self.linecolor, 'linewidth': self.linewidth, **gp}
|
|
61
76
|
|
|
62
77
|
x = np.arange(len(data))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|