Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Changing Ticks to Rationals

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60726] Re: [mg60722] Changing Ticks to Rationals
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 26 Sep 2005 01:36:05 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Needs["Graphics`Graphics`"];
Needs["Statistics`NormalDistribution`"];

normdata=RandomArray[NormalDistribution[3,.5],100];

Show[h=Histogram[normdata,
        HistogramScale->1,
        DisplayFunction->Identity],
    Rationalize[AbsoluteOptions[h,Ticks],1/100],
    DisplayFunction->$DisplayFunction,
    ImageSize->420];


Bob Hanlon

> 
> From: "kristoph" <kristophs.post at web.de>
To: mathgroup at smc.vnet.net
> Date: 2005/09/25 Sun AM 05:45:00 EDT
> Subject: [mg60726] [mg60722] Changing Ticks to Rationals
> 
> Is it possible to change the ticks in an Histogram to rationals?
> For example:
> Changing 2.5 to 5/2 and so on. Thanks for help.
> 
> 


  • Prev by Date: Re: Common denominator in tables?
  • Next by Date: Re: Differences between recursions and limit
  • Previous by thread: Re: Changing Ticks to Rationals
  • Next by thread: Plotting and getting data points