Re: Why no Import command?
- To: mathgroup at smc.vnet.net
- Subject: [mg127521] Re: Why no Import command?
- From: David Bailey <dave at removedbailey.co.uk>
- Date: Thu, 2 Aug 2012 04:47:21 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <jvaqu5$71m$1@smc.vnet.net>
On 01/08/2012 09:55, Nicholas Kormanik wrote: > Please see page: > > http://reference.wolfram.com/mathematica/ref/SmoothDensityHistogram.html > > Under Applications. OldFaithful.mtp Example file comes with Mathematica. > > SmoothDensityHistogram[ExampleData[{"Statistics", "OldFaithful"}], > FrameLabel -> {"Duration (minutes)", "Interval (minutes)"}, PlotLabel -> > "Old Faithful Eruptions"] > > Why is no "Import" command needed? > > Also, how does Mathematica know which variables to use in the plot? If you extract the inside of this expression, and execute it: ExampleData[{"Statistics", "OldFaithful"}] You will see that it returns an array of pairs of data corresponding to the requested data. The ExampleData function simply extracts data from a database accessible to Mathematica. In general, if you don't understand how an expression works, take it to bits and see what the bits do! David Bailey http://www.dbaileyconsultancy.co.uk