Subversion Repositories bdplot

Rev

Rev 34 | Rev 51 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34 Rev 47
Line 2... Line 2...
2
### Used to open a graphics driver with BDplot.
2
### Used to open a graphics driver with BDplot.
3
 
3
 
4
### In X11, height  and width are scaled to get a nicer window on the screen.
4
### In X11, height  and width are scaled to get a nicer window on the screen.
5
### This hack is ugly. At least there should be a scaling factor in stead so that all measures are scaled (fonts, etc).
5
### This hack is ugly. At least there should be a scaling factor in stead so that all measures are scaled (fonts, etc).
6
 
6
 
7
bdopen <- function(file=bdp()$file,paper=bdp()$paper,mfrow=bdp()$mfrow,scale=TRUE,quality=NULL)
7
bdopen <- function(file=bdp()$file,paper=bdp()$paper,mfrow=bdp()$mfrow,scale=TRUE,quality=NULL,scaleheight=1)
8
{
8
{
9
  .bdcalcsizes(paper=paper,mfrow=mfrow)
9
  .bdcalcsizes(paper=paper,mfrow=mfrow,scaleheight=scaleheight)
10
  prm <- .bdgetpars()
10
  prm <- .bdgetpars()
11
  if( !is.na(file) )
11
  if( !is.na(file) )
12
    {
12
    {
13
      ## If figdir is supplied, prepending it to filename.
13
      ## If figdir is supplied, prepending it to filename.
14
      if(!is.null(prm$figdir)&!is.na(prm$figdir))
14
      if(!is.null(prm$figdir)&!is.na(prm$figdir))