Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: Pie chart problem


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Pie chart problem
Date   Thu, 18 Feb 2010 14:18:03 -0000

When I wrote my -pieplot-, now on SSC, I stumbled on a bug affecting -plabel(_all)- which is, I gather, known to StataCorp but considered to bite only rarely, so that it continues to languish on their to do list, being repeatedly leapfrogged by bugs that are more important or more interesting. (I paraphrase freely.) 

So, my guess is that this is what is biting Philip. 

Ae work-around is to spell out separate -plabel()- calls. 

-pieplot- is _not_ the answer to Philip's problem, as it is directed at a different part of -graph pie-'s functionality, but looking at its code may help automate a better solution. 

Nick 
[email protected] 

Philip Burgess

Thanks Maarten - much appreciated but, alas, with no joy.

My next strategy is do do a series of 'vanilla' pie chart with no
options and then build it up to try to isolate the problem.

Will let you know how this pans out.

Again, thanks for your time - really valuable.

Asides the current trauma, I must say Michael Mitchell's 2nd ed VGSG
has been terrific - highly recommend for fellow travelers


On Thu, Feb 18, 2010 at 9:08 PM, Martin Weiss <[email protected]> wrote:

> Looks like a case for Stata tech support to me...

Philip Burgess

> Right - tried this.
>
> So, per my original posting I ran the script that should generate 2
> pie charts with the only difference being the 'collocc' parameter set
> to 2 in the second run.
>
> There are no missing labels (based on my checking via tab1 on the key
> variables)
>
> I ran my code with set trace on - I set this immediately before the
> first command - and it generated 4.21 million lines of output! (The
> log file is 214 MB so not super friendly to share!)
>
> But did crash - I've pasted what I think is the region for further
> inspection - it's hard for me to be certain that this is what would
> help:
>
>
> --------------------------------------------------------------------------
> end pos_textbox.new ---
>                      - .plab_dex[`il'] = `dex'
>                      = .plab_dex[1] = 2
>                      - if 0`sharesty' {
>                      = if 01 {
>                      - if (`dex' > 1) .plabel[`il'].style.ref =
> .plabel[`il'-`dex'+1].style.ref
>                      = if (2 > 1) .plabel[1].style.ref =
> .plabel[1-2+1].style.ref
> plabel[1-2+1].style.ref: class type not found
>                        .plabel[`il'].already_custom = 0
>                        }
>
> ----------------------------------------------------------------------
> end piegraph_g.MakePlabel ---
>
> Appreciate your advice Maarten.
>
> Interestingly I run a related series of bar charts on the same data
> with no problem - it's just with the pie charts.
>
> Happy to send my bar code if you think that would help ..
>
> Philip
>
>
>
>
>
> On Thu, Feb 18, 2010 at 8:14 PM, Martin Weiss <[email protected]> wrote:
>>
>> <>
>>
>>
>> -set trace on- and look at the error region!
>>
>> What changes once you condition on "collocc == 2" instead of "collocc ==
> 1"?
>> Is there a missing label that is only relevant for the former group?
>>
>>
>>
>> HTH
>> Martin
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: [email protected]
>> [mailto:[email protected]] Im Auftrag von Philip
> Burgess
>> Gesendet: Donnerstag, 18. Februar 2010 11:00
>> An: [email protected]
>> Betreff: Re: st: Pie chart problem
>>
>> Thanks Maarten;
>>
>> I had updated a few days ago but in any event followed your advice and
>> updated again.
>>
>> No joy - same issue.
>>
>> Philip
>>
>> On Thu, Feb 18, 2010 at 6:16 PM, Maarten buis <[email protected]>
>> wrote:
>>> --- On Thu, 18/2/10, Philip Burgess wrote:
>>>> plabel[1-2+1].style.ref: class type not found
>>>> r(4018);
>>>
>>> These type of mysterious error messages can
>>> sometimes occur when the update of Stata was
>>> incomplete. So try typing in Stata:
>>>
>>> update all
>>> update swap
>>>
>>> and than try again.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index