MathGroup Archive 2012

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

Search the Archive

Re: Why no Import command?

On 8/1/12 at 4:54 AM, nkormanik at (Nicholas Kormanik) wrote:


>Under Applications.  OldFaithful.mtp  Example file comes with

>SmoothDensityHistogram[ExampleData[{"Statistics", "OldFaithful"}],
>FrameLabel -> {"Duration (minutes)", "Interval (minutes)"},
>PlotLabel -> "Old Faithful Eruptions"]

>Why is no "Import" command needed?

It has to be the way the function ExsmpleData has been created
by Wolfram. Most likely, ExampleData calls Import. Note, I do
not know this to be fact. But since people who are employed by
Wolfram have previously stated large portions of Mathematica are
written using Mathematica code, this would seem to be a
reasonable conclusion.

>Also, how does Mathematica know which variables to use in the plot?

I doubt Mathematica does know which variable to use. But the
person who created the example undoubtedly knew what was in the
file. And if he did not know what was in the file, he could have
used the command ExampleData to see what was in the file.

Look at the help page for ExampleData

  • Prev by Date: Re: Data Format
  • Next by Date: Re: mac new OS "mountain lion", compile function,
  • Previous by thread: Re: Why no Import command?
  • Next by thread: StreamPlot field lines