Skip to content

Commit fbcf391

Browse files
committed
don't supply axis domain defaults if layout.grid is specified, fixes plotly#1427
1 parent 4473d64 commit fbcf391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ supply_defaults <- function(p) {
348348
p$x$layout[[p$x$layout$mapType]] <- modify_list(
349349
list(domain = geoDomain), p$x$layout[[p$x$layout$mapType]]
350350
)
351-
} else {
351+
} else if (!length(p$x$layout[["grid"]])) {
352352
types <- vapply(p$x$data, function(tr) tr[["type"]] %||% "scatter", character(1))
353353
axes <- unlist(lapply(types, function(x) {
354354
grep("^[a-z]axis$", names(Schema$traces[[x]]$attributes), value = TRUE) %||% NULL

0 commit comments

Comments
 (0)