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]

From |
Nick Cox <njcoxstata@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Formula/algorithm Stata uses to calculate default axis ranges and tick marks? |

Date |
Sat, 6 Oct 2012 20:51:37 +0100 |

The methodology for nice numbers is broadly similar to that described in STB-25 dm28 . . . Calculate nice numbers for labeling or drawing grid lines (help nicenum if installed) . . . . . . . . . . . . . . . J. W. Hardin 5/95 pp.2--3; STB Reprints Vol 5, pp.19--20 Otherwise I doubt that there is any on-line documentation of the kind you seek. Nick On Sat, Oct 6, 2012 at 7:46 PM, Michael Stepner <michaelstepner@gmail.com> wrote: > I'm trying to find a description of the formula or algorithm Stata > uses to set the default look of a scatter plot's axes: how it chooses > the default range and tick marks. I've searched online and in the > Stata manual, but haven't found any details. I've read that Stata > chooses approximately 5 "nice values" for the tick marks, but haven't > found any indication of how those "nice values" are selected. > > If anyone could point me to a detailed description of the methodology > for selecting the nice defaults, it would be greatly appreciated! > Even if it's just pointing me to some code where these defaults are > calculated and implemented, that would be a great help. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: Formula/algorithm Stata uses to calculate default axis ranges and tick marks?***From:*"Roger B. Newson" <r.newson@imperial.ac.uk>

**References**:**st: Formula/algorithm Stata uses to calculate default axis ranges and tick marks?***From:*Michael Stepner <michaelstepner@gmail.com>

- Prev by Date:
**Re: st: Local Macros Containing Strings and Spaces** - Next by Date:
**Re: st: Local Macros Containing Strings and Spaces** - Previous by thread:
**st: Formula/algorithm Stata uses to calculate default axis ranges and tick marks?** - Next by thread:
**Re: st: Formula/algorithm Stata uses to calculate default axis ranges and tick marks?** - Index(es):