Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Fw: Unable to combine graphs using -grc1leg-


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Fw: Unable to combine graphs using -grc1leg-
Date   Thu, 28 Feb 2013 13:05:29 +0000

A wild guess is that something in your graph mentioning "key" is
triggering a bug deep, deep down in -graph-'s use of classes. That's
my guess for your first problem. You can check it by telling us
whether "key" appears in your graph in any sense: variable names,
variable labels, value labels, added text.

It could also explain what is going on in the second problem. Very
occasionally, if -graph- gets confused about classes whatever you try
afterwards is messed up. You have to back up and start again. In a
way, that's a tautology because it worked for you before you applied
-grc1leg-, yet didn't work after, but this has bitten me once and
that's my understanding. I blame the non-working classes.

There are no documented changes to -graph- in the latest update.

Nick

On Thu, Feb 28, 2013 at 12:36 PM,  <Gillian.Frost@hsl.gsi.gov.uk> wrote:

> I am trying to use -grc1leg- to combine two graphs produced using
> -marginsplot-, but I am getting odd behaviour.  Please not that -grc1leg-
> is a user written command available from
> http://www.stata.com/users/vwiggins
>
> I produce the two plots using two separate -marginsplot- and save them.
> Firstly, I combined them using -graph combine-, which works fine.  I then
> try to use -grc1leg- but I get an error message (exact commands and error
> messages are below).  After I have unsuccessfully tried to use -grc1leg-,
> -graph combine- no longer works and I get a partial plot with an error
> message - the right plot is missing and the left plot has just the box.
>
> Can anyone shed some light on what might be going on?
>
> I am using Stata/SE 12.1 for Windows (32-bit), updated to 30 Jan 2013.  We
> are not yet able to install the 25Feb2013 update, but hope to have it
> soon.
>
> Many thanks,
>
> Gillian
>
> --------------------------- commands and error messages
> --------------------------------
>
> . graph combine "Charts\concentration_bthur_fitted_trend.gph"
> "Charts\concentration_cdiff_fitted_trend.gph"
>
> . grc1leg "Charts\concentration_bthur_fitted_trend.gph"
> "Charts\concentration_cdiff_fitted_trend.gph"
> class key not found
> class key not found
> class key not found
> class key not found
> r(4010);
>
> . graph combine "Charts\concentration_bthur_fitted_trend.gph"
> "Charts\concentration_cdiff_fitted_trend.gph"
> series 0 not found
> r(111);
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index