Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

plotter: HeatMap with Rasterized smooths the heatmap

Đang mở
#633 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
data-visualization

Hướng nghiên cứu

Bắt đầu bằng việc kiểm tra đường dẫn được raster hóa của plotter.HeatMap và cách nó sử dụng plotter.Image. Tái hiện sự khác biệt giữa dữ liệu ô rời rạc và các trường liên tục, sau đó xác định hành vi nội suy hoặc API dự kiến trước khi thay đổi; công việc được coi là hoàn tất khi loại bỏ được các hiện tượng giả dạng ô vector mà không buộc phải làm mượt ngoài ý muốn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The addition of the rasterized option for the plotter.HeatMap was added to remove the lines between heat map cells resulting from vector drawing artifacts. The approach take was to make a heatmap where each heat map cell is a single pixel; the rasterisation. This small image is then rescaled to the size of the plot. This has the consequence that the image is rescaled with interpolation due to the use of plotter.Image which has this effect. In some cases, for example when you are plotting a continuous field you are likely to want this, but in cases where there is a discrete cell for each value, this is not correct. What the Rasterized option actually is a Smoothed option.

The original issue was raised to remove the artifactual lines, which is orthogonal. One solution is to have an unexported image rescaling function that does not interpolate. However, this loses the nice property of smooth scalar fields when they are wanted unless additional API knobs are added.

Ngôn ngữ chính
Go
Star
3k
Fork
202
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gonum/plot

Tất cả issue của gonum/plot

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.