Skip to content

Error in plot.new()

5 messages · jean luc picard, Barry Rowlingson

#
Dear all,

I have received the following error message since R 2.10.1 for the first
time and I am not able to draw graphics any more:
Error in plot.new() : figure margins too large
In addition: Warning message:
Display list redraw incomplete
R version 2.10.1 (2009-12-14) 
i486-pc-linux-gnu 

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     


Do you have an idea, how to solve the problem?

Many thanks in advance.

Peter
#
On Sun, Jan 24, 2010 at 9:15 PM, jean luc picard <peter.wohlmuth at gmx.at> wrote:
I have an identical system according to sessionInfo() but no problem...

 Are you sure you don't have a 'plot' function defined yourself that
is being loaded? Run R with --vanilla from the command line:

R --vanilla

 and see if it still fails. The '--vanilla' option stops R loading in
a .RData file from the current directory.

 Ooh, I can duplicate your problem if I resize my plot window very
small after the first plot. What do you see after your first
plot(1:5,1:5)? Anything? Possibly you've got some setting that's
making your graphics window very small, but I don't see why it happens
on the second plot.

 Anyway, try --vanilla and that might cut out some possibilities.

Barry
#
Running R --vanilla
Error in plot.new() : figure margins too large
In addition: Warning messages:
1: Display list redraw incomplete 
2: Display list redraw incomplete 

The plot statement only opens the graphics window but no graphic is
displayed (the same problem as in the original session).

Peter
#
On Sun, Jan 24, 2010 at 9:40 PM, jean luc picard <peter.wohlmuth at gmx.at> wrote:
Spooky. What's your Linux distribution?

 Can you try this: again from R --vanilla, do plot(1:5,1:5) and then
from another unix shell do a:

xwininfo

 and click on the plot window. Paste the result back here...

 And while you're at it, what do you get for the output of
'capabilities()' in R:
jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets
    TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE     TRUE
  libxml     fifo   cledit    iconv      NLS  profmem    cairo
    TRUE     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE

 Does it happen if you do X11(type="Xlib") first to get an Xlib
graphics device, then compare and contrast with X11(type="cairo") -
again, restarting R from a "--vanilla" run every time.

Barry
#
My distribution is Ubuntu.

xwininfo: Window id: 0x4400001 "R Graphics: Device 2 (ACTIVE)"

  Absolute upper-left X:  558
  Absolute upper-left Y:  27
  Relative upper-left X:  558
  Relative upper-left Y:  27
  Width: 787
  Height: 744
  Depth: 24
  Visual Class: TrueColor
  Border width: 1
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: Always
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +558+27  --67+27  --67-27  +558-27
  -geometry 787x744--67+27
jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets 
    TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE     TRUE 
  libxml     fifo   cledit    iconv      NLS  profmem    cairo 
    TRUE     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE 
Warning message:
Display list redraw incomplete 


Restarting with R --vanilla:
Windows are opened but no plot is displayed.
Any further ideas?

Many thanks.

Peter