Bookmark and Share

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

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

Re: st: bar graph axis color- frustrated

From   "Airey, David C" <david.airey@Vanderbilt.Edu>
To   "" <>
Subject   Re: st: bar graph axis color- frustrated
Date   Thu, 10 Jun 2010 22:21:45 -0500


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:

" linestyle(color(none)) editcopy"

if I open the .gph file with a text editor.


> 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.


>> 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:

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