# Get name of hidden inbuilt functions (like Ticks drawing)

how do I get the name and definition of a builtin Mathematica functions? For instance, I would like to see how default Tick plotting function is implemented. However, it is not clear where it is and what is its name, because its name never appears for the user. Example:

Plot[ {Sin[x], Cos[x]}, {x, 0, 3 Pi}, Frame -> True, FrameTicks -> {None, Automatic}]


Basically I want to know, how do I get the name of the function called under the Automatic label? Thanks!

-
Look at FindDivisions. This gives you something that is reasonably close to what is actually used. –  rcollyer Sep 4 '14 at 16:26
I fear there is no straightforward way for many Automatically set options. You need to don you helmet, grab your pickaxe and prepare for world-class spelunking (mind you, there are several experienced miners around here). –  Yves Klett Sep 4 '14 at 16:29
@rcollyer thanks! This is was the underlying reason for the question. To know the general answer would be very interesting, though –  Karolis Sep 4 '14 at 16:47
To see the effect of an Automatic option you can often use AbsoluteOptions; however, this is broken in v10. Using v9, plt = Plot[{Sin[x], Cos[x]}, {x, 0, 3 Pi}, Frame -> True, FrameTicks -> {None, Automatic}]; AbsoluteOptions[plt, FrameTicks] –  Bob Hanlon Sep 4 '14 at 17:40

Names["**Ticks*"]

(* { ...
, SystemDumpFrameTicksToBoxes
, ...
, SystemDumpParseFrameTicks
, ...
, SystemDumpProcessSymbolicFrameTicks
, SystemDumpProcessSymbolicFrameTicksStyle
, ...
}
*)


Some of the returned names are suggestive. We can examine their definitions using, for example, ?? SystemDumpParseFrameTicks.

-

The Commands (and its variants);

?? Plot
Attributes[Plot]
Options[Plot]
Information["*Tick*"]
DocumentationHelpLookup["*Tick*"]


will be of some help and provide additional Information. The latter will open a Help-Window.

Check also:

How can one find undocumented options or option values in Mathematica?

What are some useful, undocumented Mathematica functions?

-