S H Posted May 21, 2019 Share Posted May 21, 2019 Hello, I am attempting to write a python script that, among other things, adds a vertical lineto a scatter plot. The X axis on this scatter plot is a continuous expression and is plotting dates. I tried to add the lineusing the following expression: NewLine = Visual.FittingModels.AddVerticalLine("'" + DateString + "'") This seemingly adds the line correctly, and my date string (in 'yyyy-MM-dd' format) is in the 'Fixed' expression field. However no line appears on my visual. If I then open up the line settings and hit 'OK' without changing anything, suddenly the line appears. I'm going crazy trying to figure this one out and I'm running into a wall. Any thoughts on how to get this to work Thanks for your help! Link to comment Share on other sites More sharing options...
S H Posted May 30, 2019 Author Share Posted May 30, 2019 Figured this out eventually. For posterity, the correct syntax for this is: NewLine = Visual.FittingModels.AddVerticalLine('Date("2019-05-30")') 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