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

mesa.visualization.chartmodule doesn't work #1859

Closed
mikevlan opened this issue Nov 4, 2023 · 6 comments · Fixed by #1860
Closed

mesa.visualization.chartmodule doesn't work #1859

mikevlan opened this issue Nov 4, 2023 · 6 comments · Fixed by #1860

Comments

@mikevlan
Copy link

mikevlan commented Nov 4, 2023

As shown in the picture, I run the boltzmann_wealth_model in the mesa example, but the line chart is not displayed normally. Can anyone help me?
屏幕截图 2023-11-04 183542

@mikevlan
Copy link
Author

mikevlan commented Nov 4, 2023

I have tried it many times, ,all other charts can be displayed normally,except for chartmodule

@rht
Copy link
Contributor

rht commented Nov 4, 2023

That's projectmesa/mesa-viz-tornado#26. A fix has been pushed to https://github.com/projectmesa/mesa-viz-tornado (this is one of Mesa's dependencies). It just hasn't been released on PyPI yet. If you install from the Git repo, it should solve your problem. cc: @tpike3

@mikevlan
Copy link
Author

mikevlan commented Nov 4, 2023

那是projectmesa/mesa-viz-tornado#26。修复程序已至https://github.com/projectmesa/mesa-viz-tornado(Mesa 的依赖项之一)。只是还没有在 PyPI 上发布。如果您从 Git 存储库安装,它应该可以解决您的问题。抄送:@tpike3

Thank you for your reply. I downloaded the mesa-viz-tornado you mentioned. This solved the label problem, but the line color still cannot be displayed normally.

@rht
Copy link
Contributor

rht commented Nov 4, 2023

Have you made sure to specify as Color instead of color?

@mikevlan
Copy link
Author

mikevlan commented Nov 5, 2023

Have you made sure to specify as Color instead of color?

I was so shocked. Today I reopened pycharm and everything showed normal. Anyway, thank you for your reply.

@mikevlan
Copy link
Author

mikevlan commented Nov 5, 2023

Now I can run any function of mesa normally, but my mesa shows "cannot find declaration to go to". I don't know if this is a bug or my mistake. Fortunately, the problem is solved.

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

Successfully merging a pull request may close this issue.

2 participants