Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-generate legends with Labels as Venn-diagrams #597

Open
whatnick opened this issue May 17, 2021 · 0 comments
Open

Auto-generate legends with Labels as Venn-diagrams #597

whatnick opened this issue May 17, 2021 · 0 comments
Assignees
Milestone

Comments

@whatnick
Copy link
Member

datacube-ows version: master
ows_config.py version/link:: dea-config

Description

Legends of layers using multi-band mapping functions are generate by hand.

What I would like to do

Autogenerate using Matplotlib patches venn diagrams like below for multi-band styles with correct labels.

style_tmad_rgb_std = {
    "name": "tmad_rgb_std",
    "title": "TMAD multi-band false-colour (standard)",
    "abstract": "Good for cropland and forest",
    "components": {
        "red": {
            "function": "datacube_ows.band_utils.single_band_arcsec",
            "mapped_bands": True,
            "kwargs": {
                "band": "sdev",
                "scale_from": [0.017, 0.15],
            },
        },
        "green": {
            "function": "datacube_ows.band_utils.single_band_offset_log",
            "mapped_bands": True,
            "kwargs": {
                "band": "edev",
                "scale_from": [0.025, 0.1],
            },
        },
        "blue": {
            "function": "datacube_ows.band_utils.single_band_offset_log",
            "mapped_bands": True,
            "kwargs": {
                "band": "bcdev",
                "scale_from": [0.025, 0.13],
            },
        },
    },

legend_tmad

@whatnick whatnick self-assigned this May 17, 2021
@SpacemanPaul SpacemanPaul added this to the Needed milestone May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants