RE: Plotting the histogram
- To: mathgroup at smc.vnet.net
- Subject: [mg31331] RE: [mg31303] Plotting the histogram
- From: "tgarza01 at prodigy.net.mx" <tgarza01 at prodigy.net.mx>
- Date: Sun, 28 Oct 2001 03:07:12 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
You have probably overlooked the fact that the add-on package Graphics`Graphics` (where Histogram resides) has to be loaded prior to using any function contained in it. Here is the complete code that will do what you want: In[1]:= <<Statistics`ContinuousDistributions` In[2]:= normdata=RandomArray[NormalDistribution[0,1],100]; In[3]:= <<Graphics`Graphics` In[4]:= Histogram[normdata] It works without a hitch. Caveat: If you forget to launch the package and try to evaluate Histogram (with no results, of course), for example, you must Remove[Histogram] before loading the package. The same goes for any function in any package. Tomas Garza Mexico City Original Message: ----------------- From: msdawy at hotmail.com (Mohamed El Dawy) To: mathgroup at smc.vnet.net Subject: [mg31331] [mg31303] Plotting the histogram Hello.. i am quite new to mathematica... i am trying to plot a histogram of some data.. i have a list x filled with values, when i type normdata = RandomArray[NormalDistribution[], 100]; Histogram[normdata] it responds with nothing (these 2 lines are taken from the examples). i can't see what's wrong.. could you please help me? thank you... urs.. msdawy -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .