Skip to content

Subplot doesn't accumulate and reposition images #1332

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

Closed
cpsievert opened this issue Sep 4, 2018 · 1 comment
Closed

Subplot doesn't accumulate and reposition images #1332

cpsievert opened this issue Sep 4, 2018 · 1 comment

Comments

@cpsievert
Copy link
Collaborator

For example

library(plotly)

r <- as.raster(matrix(hcl(0, 80, seq(50, 80, 10)), nrow = 4, ncol = 5))

# embed the raster as an image
p <- plot_ly(x = 1, y = 1) %>% 
  layout(
    images = list(list(
      source = raster2uri(r),
      xref = "paper", 
      yref = "paper", 
      x = 0, y = 0, 
      sizex = 0.5, sizey = 0.5, 
      xanchor = "left", yanchor = "bottom"
    ))
  ) 


subplot(p, p)
@cpsievert
Copy link
Collaborator Author

cpsievert commented Sep 4, 2018

TODO:

  • Accumulate images
  • Re-position paper coords
  • Re-anchor axis refs

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

No branches or pull requests

1 participant