MathGroup Archive 2008

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

Search the Archive

Re: Re: Mathematica 6 -> Mathematica 7, Histogram problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94922] Re: [mg94882] Re: Mathematica 6 -> Mathematica 7, Histogram problem
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 30 Dec 2008 05:55:54 -0500 (EST)
  • Reply-to: hanlonr at cox.net

Histogram[Range[Length[vector]] - 1, Length[vector], vector &, 
 PlotRange -> All]


Bob Hanlon

---- Richard Trilling <trilling at orange.fr> wrote: 

=============
Thank you,
"Bob Hanlon" <hanlonr at cox.net> wrote in message 
news:gj55id$c5e$1 at smc.vnet.net...
> vector = {4, 4, 16, 17, 7, 9, 10, 20, 5, 9};
>
> data = Flatten[
>   Inner[Table[#1, {#2}] &, Range[Length[vector]] - 1, vector, List]];
> Histogram[data, Length[vector]]
>
> Histogram[Range[Length[vector]] - 1, Length[vector], vector &]
>
> Bob Hanlon

Thank you

I'm using the second method: Histogram[Range[Length[vector]] - 1, 
Length[vector], vector &]
because it's simpler and because the first method only applies to a vector 
of integers, which my vector is not.

This leads to another problem: The first two columns of my histogram are cut 
off, placing the cursor over the column gives the correct value except that 
they don't show on the graph.

What to do? Is this a bug? I need them to show. Is there some way to force 
this?

The vector I'm using is:

vector = {0.504644, 0.344778, 0.194196, 0.114043, 0.0873715, 0.0889029,
0.088267, 0.0848237, 0.0631136, 0.0471143}



Thank you again (or anybody else), in advance,



Richard Trilling



  • Prev by Date: Re: How to remove white borders on Graphics[]?
  • Next by Date: Re: Usages Messages
  • Previous by thread: Re: Mathematica 6 -> Mathematica 7, Histogram problem
  • Next by thread: Usages Messages