MathGroup Archive 2008

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

Search the Archive

Re: contexts and functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94572] Re: [mg94529] contexts and functions
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Tue, 16 Dec 2008 02:37:42 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200812151248.HAA26443@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

Method 1:  Open the package .m file in a recent version of Mathematica. 
  You'll see a button that, which clicks, gives you a drop-down list of 
all the defined entities in the package.

Method 2: You have to begin the work, namely, expose each of the defined 
entities as public (where, presumably, their actual definitions are 
within a Private context inside the package).  The usual way to do this 
is simply to define a usage message for each function whose name you 
want to be visible:

   myfunc1::usage="myfunc1[yrs] gives the age of the universe, in/n
                   years, as of the time yrs.";

Francisco Gutierrez wrote:
> Dear friends:
> A very elementary question. I have created a package with several functions in it. How can I retrieve a list of all the functions the package has?
> Thanks
> Francisco
> 
> --- On Sun, 12/14/08, David Park <djmpark at comcast.net> wrote:
> 
> From: David Park <djmpark at comcast.net>
> Subject: [mg94529] [mg94472] Re: [mg94432] Tooltip[] ListContourPlot[] 6.0 vs. 7.0
> To: mathgroup at smc.vnet.net
> Date: Sunday, December 14, 2008, 7:38 AM
> 
> The behavior of contour plots has changed in Version 7 and the documentation
> has not caught up with it. (The Help pages have tooltips because they never
> reevaluated the statements!)
> 
> Tooltips are no longer automatically generated. The solution is to add the
> option ContourLabels -> Automatic to your contour plot statements.
> 
> ContourPlot[x y, {x, -1, 1}, {y, -1, 1},
>  ContourLabels -> Automatic]
> 
> This should also work for ListContourPlot (but I haven't tried it.)
> 
> 
> David Park
> djmpark at comcast.net
> http://home.comcast.net/~djmpark/ 
> 
> 
> From: roby.nowak at gmail.com [mailto:roby.nowak at gmail.com]
> 
> Dear all,
> 
> With 6.0-6.0.3 ListContourPlot[] added a Tooltip[] arround every
> generated contourlines.
> With 7.0 this feature seems to have passed away.
> strangely all the ready ListContourPlot[] examples in 7.0 help still
> have the Tooltip[] but when you reevaluate them inside the help,Tooltip
> [] vanishes.
> 
> As I am extracting specific contourlines form a final ListContourPlot
> [] I am heavily relying on the Tooltip[] on every generated
> contourline.
> 
> Any hints how to reactivate it ?
> 
> thx a lot
> 
> Robert Nowak
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Re: branch of (-1)^(1/3)
  • Next by Date: Re: Recognising parameters in function
  • Previous by thread: contexts and functions
  • Next by thread: Re: contexts and functions