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

Correctly detect number of results colors #789

Merged

Conversation

ethanwhite
Copy link
Member

We were checking results_color, which will typically be a length 3 list. This would cause incorrect behavior in the presence of multiple labels. This switches to always creating results_color_sv upfront and checking it.

Also adds some type/value checks to the input.

We were checking results_color, which will typically be a length 3 list.
This would cause incorrect behavior in the presence of multiple labels.
This switches to always creating results_color_sv upfront and checking
it.

Also adds some type/value checks to the input.
@bw4sz bw4sz merged commit c4464d2 into weecology:general_viz_function Sep 25, 2024
2 checks passed
henrykironde pushed a commit that referenced this pull request Sep 25, 2024
…iple annotation types. (#768)

Change viz function to implement plot_results, 

Correctly detect number of results colors (#789)
Add geometry column to the test assert 
Also adds some type/value checks to the input.
Remove plotting from predict functions, closes #761 and update docs
Style changes and update image paths
Increase viz sizes

---------

Co-authored-by: Ethan White <ethan@weecology.org>
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