Skip to content

Document angle convention in style mapping is from the horizontal #6381

Description

@ahuang11

With all the conventions out there, I think style mapping should explicitly state it's from the horizontal, turning counterclockwise, or show the plot below.

I had to do this experiment to figure it out:

import holoviews as hv
import numpy as np

data = {
    "angle": np.arange(0, 360, 45),
    "x values": np.arange(0, 360, 45),
    "y values": np.zeros(8),
    "l values": np.zeros(8) + 1,
}

hv.Points(data, kdims=['x values','y values'] , vdims=['angle']).opts(
    angle=hv.dim('angle'), marker='dash'
) * hv.Labels(data, ['x values', 'l values'], 'angle').opts(ylim=(-0.5, 2), text_font_size='8px')
image

https://holoviews.org/user_guide/Style_Mapping.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueAn issue well suited to a new contributortype: docsRelated to the documentation and examples

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions