Appearance

These IronPython scripts below show how to modify any of the Scatter Plot visualization settings found on the Appearance tab of the Scatter Plot Properties dialog box in the Spotfire user interface.
Note

In each of the scripts below, it is assumed that the MyVis variable references the targeted visualization. See here for more information about referencing visualizations.

Change Scatter Plot Appearance Tab Options:

This IronPython script shows how to change the following, in order from top to bottom in the user interface:

  1. Set transparency
  2. Set X and Y jittering
  3. Use separate color for marked items
from Spotfire.Dxp.Application.Visuals import *

myVis = myVis.As[Visualization]()

# 1. Set transparency
myVis.Transparency = 0.5  #50% transparency (0.0 - 1.0 allowed)

# 2. Set X and Y jittering
myVis.XJitter = 0.01  #10% of max - range is 0.0 to 0.10
myVis.YJitter = 0.05  #50% of max - range is 0.0 to 0.10

# 3. Use separate color for marked items
myVis.UseSeparateColorForMarkedItems = False
Welcome!

The purpose of this website is to provide a comprehensive, accurate, and efficient IronPython reference for Spotfire developers.