Jump to content

Adding Vertical Line Fitting Model as Date


S H

Recommended Posts

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

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