Skip to content

Commit

Permalink
Set panel id when creating new panel
Browse files Browse the repository at this point in the history
This was a bug introduced by removing add_panel().
  • Loading branch information
joshuaulrich committed Aug 27, 2023
1 parent 7c65d0f commit a93544f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ new.replot_xts <- function(panel=1,asp=1,xlim=c(1,10),ylim=list(structure(c(1,10
title_timespan = FALSE)
{
panel <- new.env(TRUE, envir)
panel$id <- NA
panel$id <- length(Env$panels) + 1
panel$asp <- c(header = 0.25, series = asp)
panel$ylim <- ylim
panel$ylim_render <- ylim
Expand Down

0 comments on commit a93544f

Please sign in to comment.