Option to compress numpy array in `hovertemplate` `customdata` for `px.imshow`
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Our application enables the generation of multiplexed images, where image regions show multiple "markers" in a tissue sample to demonstrate spatial patterns of marker co-occurrence.
We enable users to toggle a custom hovertemplate that shows the underlying raw array values for each marker before they are converted to RGB:
However, this becomes noticeably slower as the number of markers grows linearly; we pass the customdata template as a stacked numpy array paired with custom hovertext.
An option to compress this template array would help in increasing the speed and effectiveness of using customdata for our hovertemplate
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 未指出任何文件或测试;请先定位 px.imshow 以及 customdata 与 hovertemplate 的处理方式,然后确定现有的 NumPy-array 路径。要视为完成,需要定义压缩选项、保留 hover 值,并就性能证据达成一致,而该 issue 目前没有明确其中任何一项。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- numpy, python
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100