Skip to content

Commit cc24c0b

Browse files
author
Jordan S Read
committed
fixed now I think
1 parent 5ec1d0b commit cc24c0b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

R/print.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ print.gsplot <- function(x, ...){
4040
plot.new()
4141
}
4242

43-
43+
top.par <- par(no.readonly=T)
4444
for (i in which(names(views) %in% 'view')){
45+
par(top.par)
4546
plots = views[[i]]
4647
plots[['window']] <- NULL
4748
window = views[[i]][['window']]
4849

4950
par(views[['par']])
50-
top.par <- par(no.readonly=T)
51+
5152
par(window[['par']])
5253
plot.window(xlim = window$xlim, ylim = window$ylim, log = window$log)
5354

@@ -64,7 +65,7 @@ print.gsplot <- function(x, ...){
6465
mtext(text=window$xlab, side=window$side[1], line = 2)
6566
mtext(text=window$ylab, side=window$side[2], line = 2)
6667
}
67-
par(top.par)
68+
6869
par(new=TRUE)
6970
}
7071

-207 Bytes
Loading
-346 Bytes
Loading
5.88 KB
Loading

0 commit comments

Comments
 (0)