Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Unwanted label on scatter plots


From   "Doug Simmons" <[email protected]>
To   <[email protected]>
Subject   st: RE: Unwanted label on scatter plots
Date   Fri, 23 Jan 2004 14:06:26 -0600

On a related note, I have just run into an issue using -by()- suboptions
with -twoway- graphs in a .do file. On the command line everything works
as expected, however, when attempting to run from a .do file, I get
parentheses mismatch errors. This only occurs when attempting to include
suboptions, actually, just when the comma is included, even if no
suboptions are specified. I am running 8.2 on XP.

I am wondering if anyone else has encountered this or can duplicate it.
And if so, is there a work-around or solution?

Thanks

>>> [email protected] 1/23/2004 11:52:21 >>>
The note at the bottom is a direct 
consequence of your typing 

twoway (scatter viral age), by(race)

Stata takes your option 

by(race) 

and automatically forms the note "Graphs by race". 
You can override the default: 

twoway (scatter viral age), by(race, note("")) 

The explicit empty string (or blanks) is enough for Stata to take 
the hint. Note that -note()- is a suboption of -by()-. 

Nick 
[email protected] 

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]]On Behalf Of 
> Wagner, Joseph
> Sent: 23 January 2004 17:44
> To: 'STATAList'
> Subject: st: Unwanted label on scatter plots
> 
> 
> I'm using STATA v8.2 and I have a simple scatter plot
> 
> twoway (scatter viral age) by(race)
> 
> Unfortunately, I'm getting this label at the bottom left of this
plot:
> 
> Graphs by race
> 
> 
> Why am I getting this label and how do I get rid of it?
> 
> It isn't an x-axis label, nor is it a caption or legend label.
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html 
> *   http://www.stata.com/support/statalist/faq 
> *   http://www.ats.ucla.edu/stat/stata/ 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html 
*   http://www.stata.com/support/statalist/faq 
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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