Commit f8e225e
committed
feat(plotting): Replace group_cmaps with group_colors using OKLab interpolation
- Implemented group_colors parameter accepting dict of colors
- Added OKLab white-to-color gradient generation in _utils.py
- Updated DotPlot to use dynamic ListedColormaps
- Added colour-science as optional dependency
- Updated default legend width to 2.0 to fix layout bugs
- Updated reference images for dotplots and affected plots1 parent 525aaa6 commit f8e225e
File tree
42 files changed
+221
-52
lines changed- docs/release-notes
- src
- scanpy/plotting
- testing/scanpy/_pytest
- tests
- _images
- clustermap_withcolor
- clustermap
- dotplot2
- dotplot3
- dotplot_dict
- dotplot_group_cmaps_swap_axes
- dotplot_group_cmaps
- dotplot_group_colors_fallback
- dotplot_group_colors_swap_axes
- dotplot_group_colors
- dotplot_obj_std_scale_group_swap_axes
- dotplot_obj_std_scale_group
- dotplot_obj_std_scale_var_swap_axes
- dotplot_obj_std_scale_var
- dotplot_obj_swap_axes
- dotplot_obj
- dotplot_std_scale_group
- dotplot_std_scale_var
- dotplot_totals
- dotplot
- highest_expr_genes
- matrixplot2
- matrixplot_std_scale_group
- matrixplot_std_scale_var_dict
- matrixplot
- pca_loadings_without_lowest
- pca_loadings
- ranked_genes
- scatter_HES_percent_mito_bulk_labels
- scrublet_no_threshold
- scrublet_with_batches
- scrublet
- stacked_violin_no_cat_obs
- stacked_violin_std_scale_group
- stacked_violin_std_scale_var_dict
- stacked_violin
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+221
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
159 | | - | |
| 166 | + | |
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
| |||
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
212 | | - | |
| 219 | + | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
216 | 224 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
223 | 237 | | |
224 | | - | |
225 | | - | |
226 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
227 | 242 | | |
228 | | - | |
229 | 243 | | |
230 | 244 | | |
231 | 245 | | |
| |||
638 | 652 | | |
639 | 653 | | |
640 | 654 | | |
641 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
642 | 659 | | |
643 | 660 | | |
644 | 661 | | |
| |||
894 | 911 | | |
895 | 912 | | |
896 | 913 | | |
897 | | - | |
898 | | - | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
899 | 918 | | |
900 | 919 | | |
901 | 920 | | |
| |||
1017 | 1036 | | |
1018 | 1037 | | |
1019 | 1038 | | |
1020 | | - | |
| 1039 | + | |
1021 | 1040 | | |
1022 | 1041 | | |
1023 | 1042 | | |
| |||
1056 | 1075 | | |
1057 | 1076 | | |
1058 | 1077 | | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1064 | 1086 | | |
1065 | 1087 | | |
1066 | 1088 | | |
| |||
1129 | 1151 | | |
1130 | 1152 | | |
1131 | 1153 | | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1132 | 1162 | | |
1133 | 1163 | | |
1134 | 1164 | | |
| |||
1148 | 1178 | | |
1149 | 1179 | | |
1150 | 1180 | | |
1151 | | - | |
| 1181 | + | |
1152 | 1182 | | |
1153 | 1183 | | |
1154 | 1184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments