[R] Problems in plot
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue May 4 18:25:00 CEST 2004
Why did you minize the RGui frame? Since it is minmized, there is no room
for any windows, as I believe they are now sized to fit within the frame:
see the CHANGES file which says
Changed windows() so that new windows fit within the MDI client
area.
So just don't minimize the MDI frame. (Duncan M might want to revisit
that code.)
On Tue, 4 May 2004, Yao, Minghua wrote:
> My code is over 700 lines. That is why I didn't send it. I am sorry I did not tell you this.
>
> See this code,
>
> for(i in 1:20){
> windows()
> par(cex = 0.75)
> plot(1:10)
> }
>
>
> if the RGui window is minimized immediately (by clicking the "minimize" button on the upper right corner) after the code is pasted and run.
>
> > for(i in 1:20){
> + windows()
> + par(cex = 0.75)
> + plot(1:10)
> + }
> Error in plot.new() : Figure margins too large
> >
> >
>
> I am using MDI mode. My operating system is Windows XP.
>
> Thanks.
>
> Minghua
>
> ________________________________
>
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Sent: Tue 5/4/2004 10:49 AM
> To: Yao, Minghua
> Cc: R Help
> Subject: RE: [R] Problems in plot
>
>
>
> You have been asked for a reproducible set of conditions -- this is the
> first time `minimized' has been mentioned. If you can find a completely
> reproducible set of actions please file a bug report (after reading the
> FAQ section carefully).
>
> We cannot help you otherwise, and don't want to spend time guessing what
> you might have forgotten to tell us. (I see you have not told us if you
> use MDI or SDI mode, for example.)
>
>
> On Tue, 4 May 2004, Yao, Minghua wrote:
>
> > It seems to me that the problem happens to the graphic window that is
> > generated immediately after the R window is minimized.
> >
> > Minghua
> >
> > ________________________________
> >
> > From: r-help-bounces at stat.math.ethz.ch on behalf of Yao, Minghua
> > Sent: Fri 4/30/2004 4:12 PM
> > To: Prof Brian Ripley
> > Cc: R Help
> > Subject: RE: [R] Problems in plot
> >
> >
> >
> > The problem is still there if windows() is used.
> >
> > Minghua
> >
> > ________________________________
> >
> > From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> > Sent: Thu 4/29/2004 9:31 AM
> > To: Yao, Minghua
> > Cc: R Help
> > Subject: Re: [R] Problems in plot
> >
> >
> >
> > The primary graphics device under Windows is called *windows* not *x11*.
> >
> > Something in your Windows setup is sometimes failing to choose a
> > reasonable window size. I have never seen that, and suspect it is nothing
> > to do with it, but please use windows() and see if the problem vanishes.
> >
> > On Thu, 29 Apr 2004, Yao, Minghua wrote:
> >
> > > Hello,
> > >
> > >
> > >
> > > I have R1.9.0 under Windows XP. My program plots several plots using
> > >
> > > x11()
> > > par(cex = 0.75)
> > > ......
> > > x11()
> > > par(cex = 0.75)
> > > ......
> > > x11()
> > > par(cex = 0.75)
> > > ......
> > > x11()
> > > par(cex = 0.75)
> > > ......
> > >
> > > Sometimes, one of them generates a small frame only with title area "R graphics: Device X (ACTIVE)". The message in the console window is
> > >
> > > Error in plot.new() : Figure margins too large
> > >
> > > This program ran well under R1.6.X under Windows NT.
> > >
> > > It seems to me that it is not a specific x11() that generates that small graphics frame.
> > >
> > > Thank you for you help in advance.
> > >
> > > Minghua
>
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
>
>
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list