We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9662a6 commit 3b321dbCopy full SHA for 3b321db
R/subplots.R
@@ -416,7 +416,7 @@ reposition <- function(obj, domains) {
416
o <- obj[[i]]
417
xs <- if (identical(o$xref, "paper")) {
418
if (is.numeric(o$sizex)) obj[[i]]$sizex <- o$sizex * abs(diff(xdom))
419
- c("x", "x0", "x1")
+ if (identical(o$xsizemode, "pixel")) "xanchor" else c("x", "x0", "x1")
420
}
421
for (j in xs) {
422
if (is.numeric(o[[j]])) {
@@ -425,7 +425,7 @@ reposition <- function(obj, domains) {
425
426
ys <- if (identical(o$yref, "paper")) {
427
if (is.numeric(o$sizey)) obj[[i]]$sizey <- o$sizey * abs(diff(ydom))
428
- c("y", "y0", "y1")
+ if (identical(o$ysizemode, "pixel")) "yanchor" else c("y", "y0", "y1")
429
430
for (j in ys) {
431
0 commit comments