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

Simplify the color generation for cost vs run plots. #145

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

zakv
Copy link
Collaborator

@zakv zakv commented Jun 13, 2022

Previously there was a static mapping of controller type to color. That doesn't jive well with supporting third party controllers, since there's no way to know how many there are. Now colors for cost vs run plots are generated on the fly based on how many different colors are needed.

This PR implements the idea initially suggested in #144.

Changes proposed in this pull request:

  • The colors used for ControllerVisualizer.plot_cost_vs_run() are now generated on-the-fly based on how many distinct colors are needed.

Previously there was a static mapping of controller type to color. That doesn't jive well with supporting third party controllers, since there's no way to know how many there are. Now colors for cost vs run plots are generated on the fly based on how many different colors are needed.
@zakv zakv merged commit 7c3d8af into michaelhush:master Jun 13, 2022
@zakv zakv deleted the simplify-cost-vs-run-colors branch June 14, 2022 10:13
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 this pull request may close these issues.

2 participants