Skip to content

Commit 97b13da

Browse files
committedJan 9, 2024
fixes #1394
1 parent 7224c41 commit 97b13da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎R/plot_raster.R

+4
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,10 @@ prettyNumbs <- function(x, digits) {
553553
out <- list()
554554
e <- out$lim <- out$ext <- as.vector(ext(x))
555555
hadWin <- hasWin <- FALSE
556+
if (add && is.null(ext)) {
557+
ext <- unlist(get.clip())[1:4]
558+
}
559+
556560
if ((!is.null(ext)) || (!is.null(xlim)) || (!is.null(ylim))) {
557561
if (!is.null(ext)) {
558562
ext <- ext(ext)

0 commit comments

Comments
 (0)