Marco Cruz Posted August 5, 2021 Share Posted August 5, 2021 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 More sharing options...
David Boot-Olazabal Posted August 23, 2021 Share Posted August 23, 2021 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 More sharing options...
Marco Cruz Posted September 3, 2021 Author Share Posted September 3, 2021 Thanks you so much for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now