![]() |
iTool User's Guide: Working with Styles |
![]() |
Styles can be applied to a single item or all items within a view. When a new visualization is added to an existing tool, the style of any previous visualization will not be automatically applied unless the preferred style is set as the default style (as described in Setting the Default Style) or unless the STYLE_NAME keyword is used. STYLE_NAME allows you to specify the name of a user-defined or system style to be applied to the created visualizations.
Changes to style properties are not automatically reflected in your visualization. To update a visualization with a modified style, you must reapply the style.
When the Update current tool style checkbox is selected on the Apply Style dialog, the Current Style is updated. Any properties set in the style you have just applied are also changed in the Current Style. Other properties are left unchanged. Any new visualizations added from that point on will have the updated style applied.
Applying a style modifies only applicable items. If the style does not contain any properties that are relevant to the selected item or visualization, no changes are made to the visualization.
Note Selecting Edit ![]() |
You can apply a style to selected items in a visualization. For example:
iPlot, RANDOMU(seed, 30)
The Apply Style dialog appears (as shown in the following figure). Here you can select your preferred style to be applied to the plot item.
Note If a particular existing style does not contain style information for an item that you have selected (for instance, if a style does not contain text information and you have selected a text item), no changes will be made to that item when the style is applied. |
![]() |
Note If nothing is currently selected, then style will be applied to the Visualization Layer within the current view. |
You can also apply a style to all items within a view. For example:
iSurface, dist(20)
Note Selecting Apply to all items in all views applies the style changes to every item in every view available in the current iTool (e.g., an iPlot tool subdivided into four views using the VIEW_GRID keyword from the command line). |
Note Applying a style to all items will ignore items that have the Show property is set to False (i.e. hidden items). |
The STYLE_NAME keyword allows you to apply a style to a visualization when an iTool is launched from the command line. This keyword can be used with any of the iTool routines (ICONTOUR, IIMAGE, IMAP, IPLOT, ISURFACE, IVECTOR, and IVOLUME).
Several system styles are included in your IDL distribution. For more information on setting a system style or created style, see Setting the Default Style.
Note Styles specified in the STYLE_NAME string override the default style. |
IDL Online Help (March 01, 2006)