-
Notifications
You must be signed in to change notification settings - Fork 64
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
color ignored in scatterplot3js, lwd ignored in lines3d #76
Comments
definitely some bugs here. Oddly however my bugs seem different! line width and line color are working for me (RStudio 1.0.143 and Firefox 57.04 and Chromium on Linux). But, the first plot is broken (black instead of orange discs), and if I repeat lines3d more than once all lines disappear. investigating... |
I used Firefox 58.0 (using js stuff with RStudio often gives me problems, so I usually switch the viewer off). The color in |
…back to render globe map in globejs map previously didn't render until interaction
I fixed some color setting bugs identified in this thread. Your code, repeated below, is now working for me in at least the following browsers: Chromium Version 64.0.3282.140, Firefox 58.0.2, and in RStudio 1.0.143.
NOTE! The repeated use of lines3d is still a fix in progress, so this is only an interim fix... |
ok, the repeated call to lines3d should also be fixed now (see issue #79). Let me know if things are working for you... |
In terms of colors, things now work work for me. The Best, Ulrike |
I think this is working, here is what I get with the following program:
|
Yes, indeed most of it also works for me! The I don't understand the decision that previously drawn lines have to have their colors and widths respecified when adding further lines (this is what I conclude from your example); it is nice that this is possible, but in my view it is a nuisance that it is necessary (and I wouldn't have understood this from the documentation). As there is only a scalar Best, Ulrike Code: |
Ah, I see. It's a great point. I'm only adding one line yet specifying two colors. I agree that this is dumb and will change it... |
OK, after all this time, this should finally be fixed. Sorry for the slow progress. An example that illustrates the bug fixes/changes:
|
Nice, the colors now work for me. |
I am having troubles too.
but points are all black regardless of the picked color. Nevertheless, if I use |
The code below shows that the color specification is ignored by the display following
scatterplot3js
; after adding a point in different color, the original "orange" is also respected. Optionlwd
inlines3d
apparently does not have any effect on the line width.Best, Ulrike
m <- cbind(x=1:10,y=1:10,z=(1:10)/((1:10)^2))
(s <- scatterplot3js(m, color="orange"))
(s <- threejs::points3d(s, 1,1,1,color="blue"))
lines3d(s, 1, 10, lwd=5, color="blue")
The text was updated successfully, but these errors were encountered: