Jump to content
  • How to apply a Document Color Scheme to a Heat Map Visualization in Spotfire® Using IronPython Scripting


    This article describes how to apply color schemes stored in a Document to a Heat Map visualization.

    Introduction

    This article describes how to apply color schemes stored in a Document to a Heat Map visualization.

    Code Sample

    # Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    from Spotfire.Dxp.Application.Visuals import*
    vis2 = viz.As[HeatMap]() #viz is an input parameter, referenced to the visualization where Color Scheme needs to be applied.
    vis2.Colorings[0].Apply("DocumentColorSchemeName") #provide the name of the doc color scheme
    print "doc color scheme applied"
     

    References

    License: TIBCO BSD-Style License

    Back to IronPython Scripting in TIBCO Spotfire Examples:  https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...