Closed
Description
The plotGlPixelRatio
config setting is not respected when using a scattergl trace and attempting to download the image in svg format via the image download button. This option was previously broken in older versions of plotly but was fixed and should have made its way into the R version now as well.
I expect this is an issue with RStudio's lack of webGL rendering as noted in the warning, but opening the figure in a new browser window has the same issue.
library(plotly)
fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length, type = "scattergl", mode = "markers") %>%
config(plotGlPixelRatio = 10, toImageButtonOptions = list(format = "svg"))
fig2 <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length, type = "scattergl", mode = "markers") %>%
config(plotGlPixelRatio = 1, toImageButtonOptions = list(format = "svg"))
These images downloaded from a browser window will be the same.
Metadata
Metadata
Assignees
Labels
No labels