Re: listplot and notebook directory
- To: mathgroup at smc.vnet.net
- Subject: [mg15443] Re: listplot and notebook directory
- From: "Nicolas B.E. Sawyer" <nbes at eee.nott.ac.uk>
- Date: Mon, 18 Jan 1999 04:21:46 -0500
- Organization: University of Nottingham
- References: <779bkt$b7o@smc.vnet.net> <77he4d$hc9$5@dragonfly.wolfram.com>
- Sender: owner-wri-mathgroup at wolfram.com
Please tell me more about this. When I try (V3.0 on a PC) NotebookInformation[SelectedNotebook[]] all I get is Out[6]= {MemoryModificationTime -> 1615015} The whole line gives nothing at all. Allan Hayes wrote: > > >2. NOTEBOOK DIRECTORY > > The following might help > > DirectoryName[ToFileName["FileName"/.NotebookInformation[SelectedNotebook[]] > ]] > > "C:\\WINDOWS\\Desktop\\" > > Allan > > --------------------- > Allan Hayes > Mathematica Training and Consulting > www.haystack.demon.co.uk > hay at haystack.demon.co.uk > Voice: +44 (0)116 271 4198 > Fax: +44 (0)870 164 0565 > > Maarten.vanderBurgt at icos.be wrote in message <779bkt$b7o at smc.vnet.net>... > >Hello, > > > >I have two unrelated questions: > > > >1. LISTPLOT > > > >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]"? > > > > > >2. NOTEBOOK DIRECTORY > > > >Is there a command which gives the directory where the current notebook > >resides? > > > >You get the notebook directory -- which can be some network directory > >different from the local directory where Mathematica is located -- with > >$InitialDirectory when you start Mathematica by double clicking on the > >notebook file in Explorer (Windows). However, when Mathematica is > >launched from the programs menu and you open the same notebook from the > >File menu, $InitialDirectory gives the Mathematica directory. Is there > >a command which also in the latter case gives the path to the notebook? > >I did not find anything in the book. This would be very usefull when > >you want to read in data from an ascii file which sits in the same > >directory as the notebook file. It would make moving the whole > >directory much easier: you would not have to retype a fairly long > >network directory path. > > > > > >Thanks for any help > > > >Maarten van der Burgt > > > >Icos Vision Systems > >Leuven > >Belgium > > > > -- Nicolas B.E. Sawyer Department of Electrical and Electronic Engineering, University of Nottingham, University Park, Nottingham, NG7 2RD. Tel: +44 115 9515151 ext 12028 Fax: +44 115 9515616 E-mail: nbes at eee.nottingham.ac.uk