plotly / plotly/plotly.py

problem with vrect in log plot

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

@nicholas-esterer đang làm issue này rồi.

Từ ngày 3/12/2021.

bug P3
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ả

Thank you so much for helping improve the quality of Dash!

We do our best to catch bugs during the release process, but we rely on your help to find the ones that slip through.

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                      1.21.0
dash-bootstrap-components 0.13.0
dash-core-components      1.17.1
dash-datetimepicker       0.0.4
dash-html-components      1.1.4
dash-table                4.12.0
  • if frontend related, tell us your Browser, Version and OS

    • OS: Win
    • Browser chrome
    • Version 96.0.4664.45

Describe the bug

Log graph has problem with Vrect

Expected behavior

The annotation must locates on the Vrect.

Screenshots

image

    def get_vrect(fig, x0, x1, text, color):
        fig.add_vrect(x0=x0, x1=x1, annotation_text=text, annotation_position="inside top right", fillcolor=color, opacity=0.3, line_width=0)
        return fig

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Đánh giá

Issue này chưa được đánh giá.

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.