Welcome to Sf-Ref.com, home of The Spotfire IronPython Quick Reference! The purpose of this website is to provide a comprehensive, accurate, and efficient IronPython reference for Spotfire users.
This content is being written incrementally, with an ultimate goal of providing example IronPython code snippets that cover every part of the Spotfire object model, including visualizations, data tables, filters, markings, and bookmarks.
How to Find What You Need Quickly
The table of contents in the left pane of this website is organized to closely resemble the structure of the Spotfire user interface.
For example, to adjust the marker size of a scatter plot manually, you probably know that you must right-click on the scatter plot, select “Properties”, click on the “Size” tab, and finally adjust the slider labeled “Marker Size” at the top of the dialog box. Similarly, the IronPython code snippet required to perform this same action can be found on this site by clicking “IronPython”, “Visualizations”, “Scatter Plots”, and finally “Size” in the table of contents at left. This page also contains code snippets for changing any other property located on that same “Size” tab.
Basically, as long as you know how to perform an action in Spotfire manually through the user interface, you should be able to easily find the IronPython code snippet here that programmatically completes the exact same action.
Copying Code Snippets
Once you find the code snippet you need, you can copy the whole script by clicking on the light grey clipboard icon at the top right of each code snippet window. The script can then be pasted into directly into Spotfire. Try it out below!
# Copy this IronPython code snippet by clicking the clipboard icon at right # Then, paste it into the Spotfire IronPython script editor by pressing Ctrl+V print "Success!"
Feel Free to Get in Touch
That should cover everything you need to get started! As you use the site, if you have any questions, comments, or ideas, I’d love to hear from you. Feel free to email me at email@example.com. I wish you the best!
The purpose of this website is to provide a comprehensive, accurate, and efficient IronPython reference for Spotfire developers.
If you have any questions, comments, or ideas, feel free to get in touch!