Skip to content

problem with vrect in log plot #3493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Sank-WoT opened this issue Dec 1, 2021 · 1 comment
Open

problem with vrect in log plot #3493

Sank-WoT opened this issue Dec 1, 2021 · 1 comment
Assignees
Labels
bug something broken P3 backlog

Comments

@Sank-WoT
Copy link

Sank-WoT commented Dec 1, 2021

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
@alexcjohnson alexcjohnson transferred this issue from plotly/dash Dec 1, 2021
@alexcjohnson
Copy link
Collaborator

cc @nicholas-esterer - shape coordinates are always in data units, whereas for annoying historical reasons annotations on log axes have these coordinates in log units.

@alexcjohnson alexcjohnson added the bug something broken label Dec 1, 2021
@nicholas-esterer nicholas-esterer self-assigned this Dec 3, 2021
@gvwilson gvwilson added the P3 backlog label Aug 12, 2024
@gvwilson gvwilson changed the title [BUG] problem with vrect in log plot Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

4 participants