Skip to content

Commit

Permalink
missed a delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bollard committed May 27, 2022
1 parent 5b1ea2e commit 000dab2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,7 @@ plot.xts <- function(x,
# set the ylim based on all the data if this is not a multi.panel plot
yrange <- range(cs$Env$xdata[subset], na.rm=TRUE)
}
if(isTRUE(all.equal(yrange[1L], yrange[2L]))) {
if(yrange[1L] == 0) {
yrange <- yrange + c(-1, 1)
} else {
yrange <- c(0.8, 1.2) * yrange[1L]
}
}

cs$set_ylim(list(structure(.perturbConstant(yrange), fixed=FALSE)))
cs$Env$constant_ylim <- range(cs$Env$xdata[subset], na.rm=TRUE)
} else {
Expand Down

0 comments on commit 000dab2

Please sign in to comment.