[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: automating multiple graphs to be exported from a do file
The crucial detail here is that the information
leading up to each command differs. That being
so, it is difficult to suggest ways of speeding
this up very much. You could save yourself
a little typing by a one-off program like
graph export `0'.wmf
so that if you type
it gets expanded to
graph export filename1.wmf
Of course you could use a shorter name.
And such a program would need watching
carefully for complicated Windows-names
with spaces, etc.
As soon as you're doing _essentially_
the same stuff again and again, the
> Win98se, Stata 8.2.
> I have thought about this problem but quite happy with the
> status quo at the
> moment. So if no solution I am ok but would like to hear
> any offer of advice/help.
> gr blah blah
> graph export filename1.wmf
> gr bloh bloh
> graph export filename2.wmf
> gr blih blih
> graph export filename3.wmf
> gr bluh bluh
> graph export filename_n.wmf
> So, right now I only have 12 graphs to produce. So in my
> do-file I don't
> mind cutting, pasting, and naming the graph in increments.
> I can imagine
> though that if I have a bit more to do, it might be more
> efficient to write
> ala Nick (Cox)'s one (or two liners) to automate this task.
> At the moment
> this is beyond me and I do not know whether this can be
> done e.g. using for val stuffs.
> By the way, the routines above the individual graph command are all
* For searches and help try: