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

Enable adding custom point shapes #585

Open
CommanderTvis opened this issue Aug 15, 2022 · 2 comments
Open

Enable adding custom point shapes #585

CommanderTvis opened this issue Aug 15, 2022 · 2 comments
Labels
Milestone

Comments

@CommanderTvis
Copy link
Member

It would be helpful to have the ability to add custom point shapes (by providing an SVG of them, for example).

@alshan
Copy link
Collaborator

alshan commented Aug 16, 2022

Similar request: LPK-112.

@alshan alshan added this to the Backlog milestone Aug 16, 2022
@alshan alshan modified the milestones: Backlog, 2023Q3 Jun 28, 2023
@alshan alshan modified the milestones: 2023Q3, New Sep 29, 2023
@alshan alshan modified the milestones: New, 2024Q1 Dec 29, 2023
@alshan alshan modified the milestones: 2024Q1, 2024Q2 Mar 29, 2024
@ASmirnov-HORIS
Copy link
Collaborator

We could start with a simpler variant where the shape of a point is specified by a Shapely object, for example:

r = 2/sqrt(3)
hexagon = Polygon([
    (r, 0), (r/2, 1), (-r/2, 1),
    (-r, 0), (-r/2, -1), (r/2, -1)
])

df = pd.DataFrame({'x': [0], 'y': [0], 's': [hexagon]})

ggplot(df, aes('x', 'y')) + \
    geom_point(aes(shape='s'), size=50) + \
    scale_shape_identity() + coord_fixed()

Output now:

Expected:

@alshan alshan added the * label Apr 13, 2024
@alshan alshan modified the milestones: 2024Q2, 2024Q3 Jun 30, 2024
@alshan alshan modified the milestones: 2024Q3, 2024Q4 Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants