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

Add support for subcoordinate_group drawn from NdOverlay dimensions #6270

Closed
wants to merge 1 commit into from

Conversation

philippjfr
Copy link
Member

Instead of drawing the subcoordinate grouping from the Element.group you can now specify a multi-dimensional NdOverlay and draw the group from one of the dimensions, e.g.:

import numpy as np
import holoviews as hv

hv.extension('bokeh')

data = {
    ('EEG', f'EEG {i}'): hv.Curve(
        np.random.randn(100).cumsum()+i
    ).opts(subcoordinate_y=True)
    for i in range(3)
}
data.update({
    ('MEG', f'MEG {i}'): hv.Curve(
        -np.random.randn(100).cumsum()+i
    ).opts(subcoordinate_y=True)
    for i in range(3)
})

hv.NdOverlay(data, ['Group', 'Channel']).opts(
    responsive=True, height=400, subcoordinate_group='Group'
)
Screenshot 2024-06-07 at 17 38 52

@philippjfr philippjfr added the type: enhancement Minor feature or improvement to an existing feature label Jun 7, 2024
@philippjfr philippjfr marked this pull request as draft June 18, 2024 15:41
@philippjfr philippjfr closed this Oct 15, 2024
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant