Jump to content

How to set shape scheme like triangle or any other shape using iron python script for scatter plot


vel murugan

Recommended Posts

Hi

My Requirement is , having drop down with column names

By using iron python script changing shape Axis but the problem is it takingdefault shapes like square and circle

manually i can change the shapes but if i change the dropdown again it is showing as square and circle

i want to give it like triangle right and triangle left ,is there any way to set these shapes through script though i change the drop-down

Link to comment
Share on other sites

  • 2 months later...

You can set the shapes based on column Values using the below script

from Spotfire.Dxp.Application.Visuals import *

 

#add script parameter splot referring to the scatterplot

 

splot.As[scatterPlot]().ShapeAxis.ShapeMap["value"] = MarkerShape(MarkerType.TriangleUp)

splot.As[scatterPlot]().ShapeAxis.ShapeMap["value"] = MarkerShape(MarkerType.TriangleDown)https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...