Allow setting zmid with zmin and zmax in plotly.graph_objects.Heatmap
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 18.8k
- Fork
- 2.8k
- Merge trung bình
- 16 giờ 26 phút
- Pull request đã merge (30 ngày)
- 21
Mô tả
Feature request
I've been trying to plot a subset of a ranked list (gene differential expression dataset). I would like the minimum and maximum color scale set to that of the original complete ranked list, with the midpoint set to zero. It currently seems to be impossible in plotly to do this. I can plot the subset with the colorscale min and max set to the original dataset min and max, but this causes the midpoint to no longer be set to zero.
It can be desirable to set a colorscale to the minimum and maximum of a positive/negative spanned dateset with unequal absolutes but to still have the midpoint at zero without needing to construct and entirely custom colorscale. zmid being ignored when zmax and zmin are set just seems a super odd behavior to me.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu từ plotly.graph_objects.Heatmap và theo dõi cách zmin, zmax và zmid được xử lý cho colorscale. Kiểm tra các kiểm thử Heatmap hiện có để tìm hành vi liên quan. Được xem là hoàn tất khi zmid vẫn có hiệu lực trong trường hợp zmin và zmax được đặt rõ ràng, với độ bao phủ cho các cận dương và âm không bằng nhau.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- data-visualization
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100