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]

From |
"Kieran McCaul" <Kieran.McCaul@uwa.edu.au> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: bar graph axis color- frustrated |

Date |
Fri, 11 Jun 2010 11:38:10 +0800 |

... it's really buried away, isn't it. Changing the look of the category axis is really something I would expect people would want to do. Perhaps the Graphics Manual could be updated to show a few examples. -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Airey, David C Sent: Friday, 11 June 2010 11:34 AM To: statalist@hsphsun2.harvard.edu Subject: Re: st: bar graph axis color- frustrated . Oh, Kieren got it: graph hbar weight price , yvaroptions(axis(lc(none))) The help is in "help graph_bar##yvar_options" So it's a real option. Still, I would like to know if and how to use graph editor commands directly if possible. -Dave > sysuse auto > > graph hbar weight price, nodraw saving(Graph, replace) > > graph hbar weight price, nodraw play(axis_none) saving(Graph, replace) > > The second command does indeed draw the command on the screen. My recording removes the axis successfully, but at the expense of drawing it to the screen. Why should the graph recording require the graph be drawn? > > The graph editor command that seems to be issued is: > > "varaxis.style.editstyle linestyle(color(none)) editcopy" > > if I open the .gph file with a text editor. > > -Dave > > >> But there has to be an underlying graph command that the graph editor is issuing but is not documented under graph bar. I think I remember seeing others use graph editor commands directly (at the command line) before on this list. You just need to find out what graph editor command is being issued when you make the axis color none using the graph editor and then issue that command in your .do file. > > -Dave > >>> Thank you Michael. That is exactly how I am doing them (using the record) feature. The problem is that I am doing 20 graphs on each of 700 sites and outputting them to a series of reports. To run the recorded routine, I have to display each graph. That is, I can not use the -nodraw- option!! >> > > * * 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/

**Follow-Ups**:**RE: st: bar graph axis color- frustrated***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**Re: st: bar graph axis color- frustrated***From:*"Airey, David C" <david.airey@Vanderbilt.Edu>

- Prev by Date:
**Re: st: bar graph axis color- frustrated** - Next by Date:
**Re: st: bar graph axis color- frustrated** - Previous by thread:
**Re: st: bar graph axis color- frustrated** - Next by thread:
**RE: st: bar graph axis color- frustrated** - Index(es):