Bookmark and Share

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


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

RE: st: location of text/textbox in plot


From   "William Buchanan" <[email protected]>
To   <[email protected]>
Subject   RE: st: location of text/textbox in plot
Date   Fri, 28 Oct 2011 11:17:45 -0700

Hi Elan,

Assuming you are using Stata 12 (since you did not specify otherwise in your
email), you can always use some of the new functions in the graph editor.
If you're planning to add the same text to these graphs you can use the
function that allows you to record changes that you make the in graph editor
and then replay them over the other graphs.  It may be a bit more on the
time consuming side, but it will at least give you a working solution for
now.

- Billy

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Cohen, Elan
Sent: Friday, October 28, 2011 11:13 AM
To: [email protected]
Subject: RE: st: location of text/textbox in plot

Thank you.  I've read that article before.  While it explains some of
Stata's behavior, it doesn't explain the "choose-a-nice-number routine"
(Stata's words, see -help axis_label_options-) which I believe is what I'm
after.  I'm creating a couple of dozen plots so manually determining the
ranges & labels is not an options.

The way I see it, I either need to understand the choose-a-nice-number
routine (it doesn't seem to be public information) so I can extract the
"nice" ranges or it would convenient to have -ring()- and -position()-
suboptions similar to -legend()-.

- Elan


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jorge Eduardo
Pérez Pérez
Sent: Friday, October 28, 2011 1:58 PM
To: [email protected]
Subject: Re: st: location of text/textbox in plot

This article describes how Stata chooses the x and y ranges:

http://www.stata-journal.com/sjpdf.html?articlenum=gr0019

Once you specify the -range- and -label- options of your graph, Stata will
not override your values (unless you are asking for too narrow ranges
according to your data and labels), and you can place your text in the right
place.

_______________________
Jorge Eduardo Pérez Pérez




On Fri, Oct 28, 2011 at 11:17 AM, Cohen, Elan <[email protected]> wrote:
> Statalisters,
>
> I'm trying to add text to the upper left of my scatter plot via the
-text()- option.  However, because Stata chooses the x and y ranges to be
neat, there's no way for me to know exactly what the minimum x value &
maximum y value are.  If I simply choose these values from my data, the text
box is always closer to the center than I'd like.
>
> Is there a way to obtain this information from Stata?  Alternatively, is
there an option to place the textbox in the upper left?
>
> Thank you,
>
> - Elan
>
>
> --
> Elan D Cohen, MS
> Center for Research on Health Care Data Center University of 
> Pittsburgh [email protected]
>
>
>
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index