Statalist


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

AW: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1)


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1)
Date   Mon, 4 May 2009 09:05:54 +0200

<> 


Do not forget to migrate the resulting .grec files to a new computer,
though. By default, they end up in C:\ado\personal\grec, at least for me. If
you fail to take it with you when reinstalling the OS, you are in for a
nasty surprise...



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Jacob Wegelin
Gesendet: Montag, 4. Mai 2009 02:10
An: [email protected]
Betreff: Re: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1)

Thanks to Martin for showing how to get to the help file.

To round this out:

After clicking on the icon that looks like a bar chart to start
editing the graph, you can click on a red dot to start recording what
you do.

When you click on the red dot again to stop recording, you are
prompted to save what you've done. If you say yes, a record of your
work is saved in a *.grec file. Suppose you name it -my.grec-. Then
you can put the following line at the end of the commands that
generated the plot that you edited:

- graph play my -

and Stata will reproduce your edits when you run the do-file. You
never have to do the same edits again on that plot.

Jake

On Sun, May 3, 2009 at 11:05 AM, Martin Weiss <[email protected]> wrote:
> <>
>
> Seems to me Scott recorded those which you should be able to do in Stata
> 10.1 as well. See
>
> -help graph editor, mark(recorder)-
>
>
>
> HTH
> Martin
> _______________________
> ----- Original Message ----- From: "Jacob Wegelin"
<[email protected]>
> To: <[email protected]>
> Sent: Sunday, May 03, 2009 4:56 PM
> Subject: Re: st: graph hbox Y, by(something noiyaxes) over(grp2)
over(grp1)
>
>
>> Dear Scott:
>>
>> Thank you for this solution. But does the graph editor generate text
>> commands that I can retrieve and put into a do-file, the same way that
>> Stata's point-and-click interface generates text commands?
>>
>> How did you discover the - gr_edit - commands that you provide below?
>> - help gr_edit - produces nothing in Stata 10.1 for Macintosh.
>>
>> Jake
>>
>> On Sat, Apr 18, 2009 at 4:10 PM, Scott Merryman
>> <[email protected]> wrote:
>>>
>>> On Fri, Apr 17, 2009 at 6:52 PM, Jacob Wegelin <[email protected]>
>>> wrote:
>>>>
>>>> The artificial example below creates a "by" plot (two plots, in a row)
>>>> with a superfluous row of labels for the levels of -foreign- and of
>>>> -headroom- between the left and right graphs. I'd like to eliminate
>>>> the second set of labels, that is, those for the plot on the right,
>>>> and smash the two plots together with very little space between them.
>>>> In particular, the labels "Domestic" and "Foreign" should appear only
>>>> once on the entire "by" plot.
>>>>
>>>
>>> clear all
>>> sysuse auto
>>> set scheme lean1
>>> egen PriceCat=cut(price), at(3000 6000 16000)
>>> graph hbox turn, by(PriceCat, noiylabel noiyaxes rows(1))
>>> over(headroom) over(foreign) name(gr1,replace)
>>>
>>> //use the graph editor or by command line:
>>> gr_edit plotregion1.supaxis[2].draw_view.setstyle, style(no)
>>> gr_edit plotregion1.grpaxis[2].draw_view.setstyle, style(no)
>>>
>>>
>>> Scott
>>> *
>>> * 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/
>>>
>>
>> *
>> *   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/
>>
>
> *
> *   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/
>

*
*   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/


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index