Skip to content

Commit

Permalink
Merge pull request #472 from lindsaycarr/master
Browse files Browse the repository at this point in the history
reset logs before adding default_view
  • Loading branch information
Lindsay Carr authored Apr 17, 2017
2 parents f9cc1bf + bc686a5 commit 8f333f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ print.gsplot <- function(x, ...){

if(!is.null(view.info)){
default_view <- ifelse("view.1.2" %in% view.info$name, "view.1.2", view.info$name[1])

# reset par logs before adding the default side
# otherwise, par is stuck on the last side added
for(side.name in as.side_name(default_view)){
if("x" == as.axis(side.name)){
par(xlog=views[[side.name]]$log)
} else {
par(ylog=views[[side.name]]$log)
}
}

set_frame(views, default_view)
}

Expand Down

0 comments on commit 8f333f4

Please sign in to comment.