Skip to content

theming for axis ticks ignores "size" argument #703

@JonathanDobresSonos

Description

@JonathanDobresSonos

The theme() function seems unable to affect the thickness of axis ticks via the "size" arguments. Other attributes like length and color can still be modified. In this example, note that the size argument alters the panel border as expected, but does not change the axis ticks at all. I have tried several Matplotlib parameters as well, with no effect.

(
    ggplot(pd.DataFrame({'x': [1,2], 'y': [1,2]}), aes(x = 'x', y = 'y')) +
    geom_point() +
    theme_bw() +
    theme(
        panel_border = pn.element_line(size = 0.3),
        axis_ticks = pn.element_line(size = 0.3)
    )
)

test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions