Skip to content

Bug: Line shape smears #2905

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

Closed
droid192 opened this issue Nov 15, 2020 · 1 comment
Closed

Bug: Line shape smears #2905

droid192 opened this issue Nov 15, 2020 · 1 comment

Comments

@droid192
Copy link

droid192 commented Nov 15, 2020

ref: #2141
plotly 4.12.0

problem: on zoomin of the figure the new add_hline smears the line_dash, while the add_shape is just fine (which i use as fallback for now)

        fig.add_hline(y=1.1, # the 2.1 is another example for 'dot'
                                line_dash="dash",
                                line_color="orange", )
        fig.add_shape(type='line',
                                line=dict(color='goldenrod',
                                          width=1,
                                dash='dot'),
                                x0=xaxis_range[0],
                                y0=1,
                                x1=xaxis_range[1],
                                y1=1,
                                )

If i hit "reset zoom" the smear disappears, it seems the default scale 0-1 (here) is used.
image

on zoom in, the add_shape (lower) stays 'crisp':
image

@droid192
Copy link
Author

updated dash & co

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant