MathGroup Archive 2009

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

Search the Archive

Re: Forcing vertical scale on Histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101990] Re: [mg101962] Forcing vertical scale on Histogram
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 25 Jul 2009 04:18:25 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

data = RandomInteger[{1, 19}, 15]

{3,17,5,18,16,19,11,3,16,13,7,9,3,10,14}

Histogram[data, {5},
 Function[{bins, counts},
  counts/Total[counts]]]

Histogram[data, {5},
 "Probability"]


Bob Hanlon

---- Larry Knight <larryknight71 at yahoo.com> wrote: 

=============
Hello;
I am using Mathematica 7 and need help on formatting a Histogram.  I want to force the vertical scale to a particular value, and NOT use the automatic scaling. 

I have read the documentation, and looked at the examples, but cannot seem to find the solution. 

Anyone know how to do this? Please provide a small working code snippet!

Thanks, 
Larry Knight,
Woodstock, Georgia



  • Prev by Date: Re: Read data from an existing file
  • Next by Date: solving a system of two equations
  • Previous by thread: Forcing vertical scale on Histogram
  • Next by thread: Re: Re: Forcing vertical scale on Histogram