Skip to content

Commit 90d5c6d

Browse files
committed
Merge pull request #299 from jread-usgs/master
bgCol was being called by default
2 parents 182999c + 07d8810 commit 90d5c6d

File tree

6 files changed

+4
-3
lines changed

6 files changed

+4
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: gsplot
22
Type: Package
33
Title: Geological Survey Plotting
4-
Version: 0.5.1
4+
Version: 0.5.2
55
Date: 2015-12-13
66
Authors@R: c( person("Jordan", "Read", role = "aut",
77
email = "[email protected]"),

R/bgCol.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ bgCol.default <- function(col,...){
6262
y2 <- par("usr")[4]
6363
}
6464

65-
rect(x1,y1,x2,y2,col = col,...)
65+
rect(x1,y1,x2,y2,col = col, border = NA, ...)
6666

6767
}
6868

R/print.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ print.gsplot <- function(x, ...){
6262

6363
# -- initial view --
6464
if(i == view.index[1]){
65-
bgCol(bg.arg)
65+
if (!is.null(bg.arg))
66+
bgCol(bg.arg)
6667
title(title.arg)
6768
}
6869

43 Bytes
Loading
135 Bytes
Loading
-27 Bytes
Loading

0 commit comments

Comments
 (0)