-
Notifications
You must be signed in to change notification settings - Fork 18
nan handling for continuous and categorical coloring #427
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
Open
Sonja-Stockhaus
wants to merge
31
commits into
main
Choose a base branch
from
bugfix/issue355-nan-in-categorical-coloring
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
5392f57
nan handling for continuous and categorical coloring
d7a6d17
also plot nonfinite points so that we see nans
ac4677f
fix behavior for labels (continuous and categorical)
edbcb88
fix ds coloring by values in table and by categorical with nan
1bd9237
fix introduced mpl shapes cbar bug, ds continuous case: render nan po…
da69a42
fix label color vector dtype for int annotation
afe7f6a
add tests
be08f22
Merge branch 'main' into bugfix/issue355-nan-in-categorical-coloring
Sonja-Stockhaus 673f0ad
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a9b9873
add new test images
2c02cee
fix error from merging main
49b3ce2
Merge branch 'main' into bugfix/issue355-nan-in-categorical-coloring
Sonja-Stockhaus 138ad75
debug ds points hex color handling
82d6d49
remove comment
85e6c08
Merge branch 'main' into bugfix/issue355-nan-in-categorical-coloring
timtreis bfe8066
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b460b58
merge
timtreis ad5eb86
fixed
timtreis 8aadf07
fixed test
timtreis 3dc4f10
split test so that it actually render points with mpl
timtreis e1f2f17
fixed points edge case
timtreis 15f3e93
test fixes
timtreis f9c892c
fixed dask categoricals
timtreis f32736e
fixed dask categoricals
timtreis 05eb2ce
changed typecheck import
timtreis 1d76909
fixed datashader point filtering
timtreis 7b1adfd
images from runner
timtreis 629f86c
legend ordering now deterministic again
timtreis 272b36c
groups arg now behaves the same for points (shows non-groups in grey)
timtreis e9c083d
updated table filtering
timtreis 9244f4f
images from runner
timtreis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+44.4 KB
tests/_images/Labels_can_annotate_labels_with_nan_in_table_X_continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.6 KB
tests/_images/Labels_can_annotate_labels_with_nan_in_table_obs_categorical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.2 KB
tests/_images/Labels_can_annotate_labels_with_nan_in_table_obs_continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+151 Bytes
(100%)
tests/_images/Labels_can_color_labels_by_categorical_variable_in_other_table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.66 KB
(120%)
tests/_images/Labels_respects_custom_colors_from_uns_with_groups_and_palette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.72 KB
(110%)
tests/_images/Labels_subset_categorical_label_maintains_order.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.77 KB
(110%)
...ages/Labels_subset_categorical_label_maintains_order_when_palette_overwrite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.6 KB
tests/_images/Points_can_annotate_points_with_nan_in_df_categorical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.8 KB
tests/_images/Points_can_annotate_points_with_nan_in_df_categorical_datashader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.2 KB
tests/_images/Points_can_annotate_points_with_nan_in_df_continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65.3 KB
tests/_images/Points_can_annotate_points_with_nan_in_df_continuous_datashader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61 KB
tests/_images/Points_can_annotate_points_with_nan_in_table_X_continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64 KB
...images/Points_can_annotate_points_with_nan_in_table_X_continuous_datashader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.3 KB
tests/_images/Points_can_annotate_points_with_nan_in_table_obs_categorical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+59.8 KB
...ges/Points_can_annotate_points_with_nan_in_table_obs_categorical_datashader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.2 KB
...ges/Points_can_annotate_points_with_nan_in_table_obs_categorical_matplotlib.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.9 KB
tests/_images/Points_can_annotate_points_with_nan_in_table_obs_continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+63.4 KB
...ages/Points_can_annotate_points_with_nan_in_table_obs_continuous_datashader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.69 KB
(130%)
tests/_images/Points_can_annotate_points_with_table_and_groups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-341 Bytes
(99%)
tests/_images/Points_points_categorical_color_column_datashader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.1 KB
tests/_images/Shapes_can_annotate_shapes_with_nan_in_df_categorical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.3 KB
tests/_images/Shapes_can_annotate_shapes_with_nan_in_df_categorical_datashader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.4 KB
tests/_images/Shapes_can_annotate_shapes_with_nan_in_df_continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.8 KB
tests/_images/Shapes_can_annotate_shapes_with_nan_in_df_continuous_datashader.png
Oops, something went wrong.
Binary file added
BIN
+32.2 KB
tests/_images/Shapes_can_annotate_shapes_with_nan_in_table_X_continuous.png
Oops, something went wrong.
Binary file added
BIN
+31.7 KB
...images/Shapes_can_annotate_shapes_with_nan_in_table_X_continuous_datashader.png
Oops, something went wrong.
Binary file added
BIN
+27.8 KB
tests/_images/Shapes_can_annotate_shapes_with_nan_in_table_obs_categorical.png
Oops, something went wrong.
Binary file added
BIN
+28 KB
...ges/Shapes_can_annotate_shapes_with_nan_in_table_obs_categorical_datashader.png
Oops, something went wrong.
Binary file added
BIN
+35.5 KB
tests/_images/Shapes_can_annotate_shapes_with_nan_in_table_obs_continuous.png
Oops, something went wrong.
Binary file added
BIN
+34.7 KB
...ages/Shapes_can_annotate_shapes_with_nan_in_table_obs_continuous_datashader.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+518 Bytes
(100%)
tests/_images/Shapes_datashader_can_color_by_category_with_cmap.png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In seg, the value 0 depicts the background, so this would lead to the bg being mapped to the NaN color
The actual label(s) with na in the color_source_vector don't have their id in cell_id anymore, so they're mapped to nothing! => would look like background