nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
390 stars 19 forks source link

Missing axes when par(mfrow) is specified #29

Closed renkun-ken closed 4 years ago

renkun-ken commented 4 years ago

Sometimes, the axes in a plot could be missing.

par(mfrow = c(2, 2))
m <- lm(mpg ~ cyl, data = mtcars)
plot(m)

for (i in 1:8) {
  plot(rnorm(100), main = sprintf("plot %d", i))
  abline(h = rnorm(1), col = "red")
  points(rnorm(100), col = "blue")
}

In the last plot, the bottom-left scatter plot does not show the axes as it should.

image

I could only reproduce this on macOS with both master and boost-beast branches but not on Ubuntu. Not sure if it occurs on Windows.

nx10 commented 4 years ago

Good catch, happens in windows too. I will look into it.

nx10 commented 4 years ago

Should be fixed boost-beast branch

renkun-ken commented 4 years ago

Thanks! It works nicely now!