-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
colorbar draws outside the bounds #970
Comments
Thanks for the report. |
When |
Looks like the original issue is masked in v1.29.0 - I suspect the tweaks in #1854 result in the outline covering the out-of-place bar - but there's still a |
A somewhat urgent aspect of this: lines in the colorbar with the default width of 0.5 just started to disappear for me: This only seems to be happening in Chrome on mac on my non-retina second screen. (I can't reproduce this even in ostensibly the same version of chrome on browserstack...) The lines still appear on my retina screen, and in other browsers. And they reappear if I give the lines any tilt away from horizontal, a somewhat different alignment relative to the edge of a pixel, or a width > 0.5px (even 0.51px). Another overly eager optimization by chrome? Or perhaps it somehow came in with the latest Mac OS update that I installed this morning? I don't think chrome updated in the last few days, and I'm quit confident this looked fine at the end of last week for me. |
@alexcjohnson This page: https://rreusser.github.io/plotly-mock-viewer/#contour_heatmap_coloring What do you see? Chrome doesn't appear to have just updated for me. |
|
Good to know. Just wanted to be 100% sure we were all looking at identically the same code. I have a non-retina screen back at home that I can check out tonight. Anyone else able to confirm? |
possibly - |
My chrome just updated from v59 to v60 and these artifacts (along with a bunch of related antialiasing failures I've noticed) seem to have been fixed. So the |
Accidently automatically close by #2891 Github isn't smart enough yet to know that would probably make it easier to finally close isn't equivalent to close. |
Hah, maybe I should take that as a sign and just do ^^ |
even though it's hard to actually trigger it now that we're using gradients for continuous colorscales (would require a very dense contour set colored by fills)
@andi1984 I haven't been able to reproduce the |
Hey Plotly team,
Small bug - sometimes, depending on the layout's height/vertical margins, one of the colorbar's
.cbfill
will get drawn outside the outline (see http://codepen.io/hellochar/pen/JREjyv):Looks like it's only off by 1 pixel:
It is a noticeable artifact that sometimes appears in our charts. Any ideas what's going on here? Happy to submit a PR as well if someone could help me understand the code at
https://github.com/plotly/plotly.js/blob/master/src/components/colorbar/draw.js#L348
Thanks,
Xiaohan
The text was updated successfully, but these errors were encountered: