Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find all possible values for an option in Mathematica?

If I have an option, for example AxesStyle, how can I find possible values for it? I know that one of the possible values is Arrowheads, but can I find others? I was looking for lists or something like that but have been unsuccessful so far.

Is there some command like Options[], or ?TicksStyle? I know that these commands are not for this, but just to get a point.

like image 323
balboa Avatar asked Jan 03 '12 21:01

balboa


3 Answers

Sometimes, the possible values for an option are incompletely documented. For example, try to find out what the legal values are for the option Method when used in Plot. The ref page for Plot merely gives the default value for Method and describes it in very general terms. In the Examples section of that page, Method is not even included among the options with examples. And the ref page for Method seems to give no help on this, either. On the latter page there is a link to the guide page Graphics Options And Styling, and on that guide page the item 'Method' appears under category "Tweaking Rendering" -- but again no help on what values might be available!

like image 153
murray Avatar answered Nov 16 '22 12:11

murray


If you check the help file for the various things you're asking about and click the "More Information" dropdown it will give you all the options.

Edit: To clarify, be sure to check the help file for the specific setting you're looking for, not the function which is using it.

like image 35
Eli Lansey Avatar answered Nov 16 '22 13:11

Eli Lansey


The main places to look for documentation for an option are the documentation pages for the option, and for the function that takes the option. Open up the various sections, starting with More Information, but also including sections like Scope (which frequently has sub-categories.)

When looking at documentation for functions, there is an entire section titled Options that has individual options as a sub-section. So you could look at ListPlot > Examples > Options > Filling which contains quite a lot.

When looking at documentation for options, especially for graphics functions, the examples may just show how you can use the option with a representative function, such as Plot. Usually similar functions like ListPlot, LogPlot, etc... will accept similar settings for the option.

like image 2
Brett Champion Avatar answered Nov 16 '22 12:11

Brett Champion