MathGroup Archive 1999

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

Search the Archive

Re: Dialog for selecting a file to be read

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17177] Re: [mg17129] Dialog for selecting a file to be read
  • From: Maarten.vanderBurgt at icos.be
  • Date: Tue, 20 Apr 1999 01:20:54 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Martin,

Some time ago I posted a similar question.
I found Bob Hanlon's suggestion, use the command Input/Get  File Path, very
useful.

Maarten




BobHanlon at aol.com on 10-01-99 09:57:42 PM

cc:

Subject: [mg17177]  Re: [mg15345] listplot and notebook directory





In a message dated 1/10/99 1:42:56 AM, Maarten.vanderBurgt at icos.be writes:

>When I execute the following command the result is a listplot where the
>data points ares fairly big filled black circles.
>     In[1]:=   ListPlot[{0,2,4,9,16,25},PlotStyle->PointSize[0.05]]
>
>The following gives a plot where the data points are joined by a line.
>     In[2]:=   ListPlot[{0,2,4,9,16,25},PlotJoined -> True]
>
>With the following I would expect the combination of the two. It does
>however give the same results as In[2]: the
>"PlotStyle->PointSize[0.05]" options doesn't seem to have any effect
>here. Is this intended behaviour or is this a bug?
>     In[3]:=   ListPlot[{0,2,4,9,16,25},PlotJoined -> True,
>PlotStyle->PointSize[0.05]]
>
>Is there a way you can have both options "PlotJoined -> True" and
>"PlotStyle->PointSize[0.05]"?
>

Maarten,

Just overlay the two plots.

plt1 = ListPlot[{0,2,4,9,16,25},
          PlotStyle->PointSize[0.05],
          DisplayFunction -> Identity];

plt2 = ListPlot[{0,2,4,9,16,25},
          PlotJoined -> True,
          DisplayFunction -> Identity];

Show[{plt1, plt2}, DisplayFunction-> $DisplayFunction];
_________________________

For Path names use the command

          Input, Get File Path ...

and select file from browser.


Bob Hanlon





"Martin Rommel" <rommel at semitest.com> on 17-04-99 09:35:18 AM


Subject: [mg17177]  [mg17129] Dialog for selecting a file to be read




I often load data files to be processed in Mathematica and it is quite
cumbersome that I have to explicitly specify the path and the
filename every time. I would rather pick from a list in a dialog window.

As far as I know there is no simple way to invoke the operating system's
file open dialog from Mathematica. Has anyone come up with a solution?

I can imagine that a small external program (maybe linked via mathlink or
called with <<"! ) can do the job.
Another possibility would be a fancy construct (maybe as a button) using
the
Mathematica Commands FileNames[], SetDirectory[], etc.


If you know of anything related please let me know!

Cheers, Martin.










  • Prev by Date: Re: importing and using data
  • Next by Date: Solving matrix equation
  • Previous by thread: Dialog for selecting a file to be read
  • Next by thread: Fibonacci [5,000,000] contains 1044938 decimal digits