MathGroup Archive 2005

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

Search the Archive

Re: Changing Ticks to Rationals


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