Re: Mathematica 6 -> Mathematica 7, Histogram problem
- To: mathgroup at smc.vnet.net
- Subject: [mg94826] Re: [mg94807] Mathematica 6 -> Mathematica 7, Histogram problem
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sat, 27 Dec 2008 07:04:08 -0500 (EST)
- Reply-to: hanlonr at cox.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 ---- Richard Trilling <trilling at orange.fr> wrote: ============= I have a feeling that this a stupid question but... In v6 one could convert a vector to a Histogram plot (where each entry in the vector represents a bar) by using the syntax: Needs["Histograms'"] Histogram[vector,FrequencyData->True] Since histograms have been included in the basic v7, this option has disappeared. My question is, is there any way to get the same result by using Histograms in v7? I am aware of the new function BarChart in v7, but I don't want to use it since I have to be able to do LOG plots on the x-axis, which the new histogram function permits. Written on Christmas day, with a nice head cold (perhaps that's the reason I couldn't find the answer to the question). Thank's in advance Richard Trilling -- Bob Hanlon