Jump to content
  • How to change X Axis Scale to log 10 and to linear in a Scatter Plot using an IronPython script in Spotfire®


    This script allows changing the X Axis Scale setting to log 10 scale and back to linear in a Scatter Plot visualization using IronPython script in Spotfire®.

    Introduction

    This script allows changing the X Axis Scale setting to log 10 scale and back to linear in a Scatter Plot visualization using IronPython script in Spotfire®.

    Code sample

     # Copyright © 2017. TIBCO Software Inc.  Licensed under TIBCO BSD-style license.  
    from Spotfire.Dxp.Application.Visuals import * 
    from Spotfire.Dxp.Application.Visuals import ScatterPlot 
    
    #'vis' is a script parameter of type 'Visualization'
    if vis.As[scatterPlot]().XAxis.TransformType == AxisTransformType.Log10:
        vis.As[scatterPlot]().XAxis.TransformType = AxisTransformType.None 
    else:
        vis.As[scatterPlot]().XAxis.TransformType = AxisTransformType.Log10  
     

    References

    License:  BSD-Style License


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...