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

Allow setting xaxis/yaxis as string #1442

Open
ahuang11 opened this issue Oct 15, 2024 · 2 comments
Open

Allow setting xaxis/yaxis as string #1442

ahuang11 opened this issue Oct 15, 2024 · 2 comments
Labels
type: enhancement New feature or request

Comments

@ahuang11
Copy link
Collaborator

Like xaxis="top" "bottom" etc
https://holoviews.org/user_guide/Customizing_Plots.html#axis-positions

@maximlt
Copy link
Member

maximlt commented Jan 27, 2025

Would it also be OK for you to use an enum like hvplot.AXIS_LOC.Top (naming can be improved)?

@maximlt maximlt added type: enhancement New feature or request and removed TRIAGE labels Jan 27, 2025
@ahuang11
Copy link
Collaborator Author

ahuang11 commented Feb 7, 2025

Yeah I'm fine with that, as long it supports both (i.e. "top" and hvplot.AXIS_LOC.Top)--the enum will simply check if the string is valid and cast as necessary.

If enums are a thing, I think they should be implemented in HoloViews, and hvPlot imports it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants