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

incomplete plots/thumbnails in safari #203

Open
r2evans opened this issue Feb 1, 2025 · 0 comments
Open

incomplete plots/thumbnails in safari #203

r2evans opened this issue Feb 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@r2evans
Copy link

r2evans commented Feb 1, 2025

Describe the bug

Sometimes plots (I'm using ggplot2, not sure if that's a factor) and/or thumbnails can provide incomplete renderings in Safari.

To Reproduce

library(ggplot2)
httpgd::hgd()
# httpgd server running at:
#   http://127.0.0.1:63230/live?token=pYdC5XjA
n <- 1e4
set.seed(42)
dat <- data.frame(x=runif(n), y=rnorm(n), w=sample(1:7, size=n, replace=TRUE), z=sample(1:3, size=n, replace=TRUE))
head(dat)
#           x           y w z
# 1 0.9148060  0.07122244 1 2
# 2 0.9370754  0.97029003 2 1
# 3 0.2861395  0.31003525 3 2
# 4 0.8304476 -0.13954856 1 2
# 5 0.6417455 -0.32631113 4 3
# 6 0.5190959 -0.11880951 4 1
ggplot(dat, aes(x, y)) + geom_point() + facet_grid(w ~ z, scales = "free")

I tried the above ggplot(..) expression repeatedly, and safari looks like this:

Image
  • Clicking on a different thumbnail and clicking back to the most recent always fixes the main-plot, but thumbnails still look off.
  • Reloading the whole page fixes the issue for all plots and thumbnails.

Chrome never had a problem with any plots or thumbnails.

(Incidentally, the wider-looking thumbnail is because I opened the same httpgd server in Chrome (on a different monitor) between plot attempts, which must have upset the notion of thumbnail-size. I am not considering that a bug atm.)

Expected behavior

Complete plot rendering for all plots and thumbnails.

Environment

  • OS: MacOS 15.2
  • Browser: Safari 18.2 20620.1.16.11.8; Chrome 132.0.6834.160 (Official Build) (arm64)
  • R version: 4.3.3
  • httpgd version: 2.0.2
@r2evans r2evans added the bug Something isn't working label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant