MathGroup Archive 2008

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

Search the Archive

Re: Mathematica 6 -> Mathematica 7, Histogram problem (bug?)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94882] Re: Mathematica 6 -> Mathematica 7, Histogram problem (bug?)
  • From: "Richard Trilling" <trilling at orange.fr>
  • Date: Mon, 29 Dec 2008 06:41:24 -0500 (EST)
  • References: <gj55id$c5e$1@smc.vnet.net>

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 get rid of irrelevant Boolean variables from an expression
  • Next by Date: Re: Usages Messages
  • Previous by thread: Re: How to get rid of irrelevant Boolean variables from
  • Next by thread: Re: .NET/Link: Leaking references