Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Package Development > Options Management > SetOptions >

SetOptions

SetOptions
sets the specified default options for a symbol s.
SetOptions or SetOptions
sets options associated with a particular stream.
SetOptions
sets options associated with an external object such as a NotebookObject.
  • SetOptions is equivalent to an assignment that redefines certain elements of the list Options[s] of default options.
  • If you use SetOptions[NotebookObject[...], ...] the kernel will send a request to the front end that will immediately make the change specified.
Reset the default precision for HilbertMatrix:
Now HilbertMatrix uses machine numbers by default:
A specific option setting overrides the new default:
Restore the system default:
Change the style for plots to use dashed curves:
Restore the system default:
Reset the default precision for HilbertMatrix:
In[1]:=
Click for copyable input
Out[1]=
Now HilbertMatrix uses machine numbers by default:
In[2]:=
Click for copyable input
Out[2]=
A specific option setting overrides the new default:
In[3]:=
Click for copyable input
Out[3]=
Restore the system default:
In[4]:=
Click for copyable input
 
Change the style for plots to use dashed curves:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Restore the system default:
In[3]:=
Click for copyable input
For notebook options with rules, it can be awkward to make a targeted change to a specific rule:
CurrentValue provides a better way of adding or changing specific rules:
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF