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

show_y_guides=False turns off the X axis at y=0 but show_x_guides=False does not turn off the Y axis at x=0 #566

Open
aszilagyi opened this issue Oct 4, 2024 · 0 comments

Comments

@aszilagyi
Copy link

show_y_guides=False turns off the dashed horizontal guide lines, but also removes the solid horizontal axis at y=0.
On the other hand, show_x_guides=False still keeps the the vertical axis at x=0.
So this code:

xy_chart = pygal.XY(show_y_guides=False, show_x_guides=False)
xy_chart.add('A', [(-3, -4), (-1, -2), (1, 2), (3, 4)])
xy_chart.render_to_file('xy.svg')

results in a graph with a vertical line at x=0 but no horizontal line at y=0.
I think there should be a way to separately turn on/off the axis at zero, independently of the guides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant