Skip to content
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

legend3d not shown in html file that is created with htmlwidgets:saveWidget using version 1.3.1 #421

Closed
MikeImbar opened this issue Apr 25, 2024 · 2 comments · Fixed by #422

Comments

@MikeImbar
Copy link

The legend is not shown html file that is created with htmlwidgets:saveWidget. I swear this exact code used to work with older versions.

reproducible code:


set.seed(1)

bla_data <- matrix(rnorm(99), ncol = 3)

par3d(FOV = 0, windowRect = c(30, 30, 1770, 1000))

plot3d(bla_data)
legend3d("topleft", c("bla1", "bla2", "bla3"), pch = 16, col = "black", cex = 3)
widget <- rglwidget()
htmlwidgets::saveWidget(widget, "D:/test/test.html")

@dmurdoch
Copy link
Owner

I see the problem too. I don't know if this is an rgl change or an htmlwidgets change; I will take a look.

@dmurdoch
Copy link
Owner

dmurdoch commented Apr 29, 2024

This looks like an rgl change, introduced last year around commit 2ec0521 .

In fact, the legend doesn't completely disappear: it shows up sometimes when the object in the scene is rotated.

dmurdoch added a commit that referenced this issue May 1, 2024
 - multiple background objects
 - disappearing background plots

Fixes #421 .
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

Successfully merging a pull request may close this issue.

2 participants