Jump to content

Vis is not defined


Marco Cruz

Recommended Posts

Hi there

I am new to Iron Python and I found this script to set up the width size for crosstables:

from Spotfire.Dxp.Application.Visuals import *

vis = vis.As[CrossTablePlot]()

vis.CellWidth = 100

However i received an error 'NameError: name 'vis' is not defined'. How do i fix this Do I need to install something

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

Hi Marco,

When you create the iron python script, you need to define vis as a parameter. So, when you go edit your script, you will find a frame below the script window where you can add a parameter (called Script parameters). You have to name it vis and refer it to the visualization for which you want to use this script.

Kind regards,

David Boot-Olazabal

Link to comment
Share on other sites

  • 2 weeks later...

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...