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

Overlaying 2 plots only shows 1 y axis at a time #5499

Closed
SamoSE opened this issue Oct 29, 2022 · 2 comments
Closed

Overlaying 2 plots only shows 1 y axis at a time #5499

SamoSE opened this issue Oct 29, 2022 · 2 comments

Comments

@SamoSE
Copy link

SamoSE commented Oct 29, 2022

I'm trying to learn to use hvplot, and I need a graph that plots a bar chart 'count', as well as a line graph of cumulative percentages. I've managed to overlay the 2 charts, but I can't get both y axes to show up. It seems that it only shows the first plot, not the secondary one. So in the example below it only shows the count (plot1) y axis. If I swap the values so that it says plot2*plot1, it will then show the right-hand y-axis, but the other one disappears.

I've tried using the yaxis parameter to differentiate the two axes, and also setting shared_axes to False. Neither had any effect. Can anyone help?

image

@hoxbro
Copy link
Member

hoxbro commented Oct 31, 2022

Twin axes are not officially supported yet, but they are planned to be supported in the near future. See #5355 for more details.

I will close the issue, as the main discussion will be happening at #5355

@hoxbro hoxbro closed this as completed Oct 31, 2022
Copy link

This issue 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 Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants