You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one creates a 3D scatter with markers and lines, both can be colored by one
dimension. However, when manually overwriting the colorbar limits only the
markers respond. This leads to completely wrong values indicated by the lines:
library(plotly)
test.plot<-mtcars %>%
plot_ly(x=~hp, y=~cyl, z=~mpg, color=~mpg,
type="scatter3d", mode="lines+markers")
# Note how the line changes color with the markers it passes through:test.plot# Note how the marker color matches the data and colorbar while the line# ignores the limits and uses the original colors:test.plot %>%
colorbar(limits= c(0, 100))
The text was updated successfully, but these errors were encountered:
Does anyone have an idea where the problem is lying? From an outside perspective this looks like a trivial bug but I guess we can agree that's typically a good indication that it's actually more tricky. 😉
For the time being a work-around would be welcome, too. In my case, I only use lines and I need to adjust the colorbar to compare different plots. Currently, this renders the whole application useless as the colors in the plots either don't match the same values or worse, not at all. If I can help I'm absolutely willing to do so.
If one creates a 3D scatter with markers and lines, both can be colored by one
dimension. However, when manually overwriting the colorbar limits only the
markers respond. This leads to completely wrong values indicated by the lines:
The text was updated successfully, but these errors were encountered: