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

Matplot can't show multiple bar graphs on one chart #117

Open
thomaswp opened this issue Dec 7, 2022 · 2 comments
Open

Matplot can't show multiple bar graphs on one chart #117

thomaswp opened this issue Dec 7, 2022 · 2 comments

Comments

@thomaswp
Copy link

thomaswp commented Dec 7, 2022

BlockPy helpfully supports multiple line plots on the same canvas; however this does not work with bar plots:

import matplotlib.pyplot as plt

plt.bar([0.5, 1.5, 2.5], [5, 8, 2], width=0.5)
plt.bar([0, 1, 2], [2, 3, 2], width=0.5)
plt.show()

produces

image

rather than why Python would generate:

image

I'm guessing that this has something to do with the JS implementation of Matplot? Some students wanted to create comparative barcharts, so it's nice to be able to do.

@thomaswp
Copy link
Author

thomaswp commented Dec 7, 2022

Sounds like maybe you're using jsplotlib under the hood? If so, it may be fixed with an update.

@thomaswp
Copy link
Author

Confirmed this is still present on the UDel instance.

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