Jump to content

Scatterplot and Combined Conditions


Abby S

Recommended Posts

Hello, 

I have a set of data that I want to display on a scatterplot, and color code by "in range" and "out of range". I have created one composite condition for "in range" based on when both x and y are in range, and another for "out of range" based on when either x or y is out of range. "in range" displays green, and "out of range" displays red. On a normal trend, the conditions work great, but as soon as I put it on a scatterplot, there are some red dots appearing in range, and some green dots appearing out of range. After about 30 minutes of frustration, I realized that the incorrect colors are appearing at the exact second that the signal changes between conditions. So every time the signal changes from "in range" to "out of range" or vis versa, 2 points appear on the same spot but one is green and one is red. I also tried using the Scatter Plot Selection tool to set the in range values and had the same issue

Photo with the in range area highlighted for reference

Is there an easier way to do this? Or an easy fix with how I'm currently doing it? Please help!

SEEQ Issue.PNG

Link to comment
Share on other sites

Hey Abby,

I was able to reproduce your issue, and it seems it is due to the way Seeq creates the Step trend, it is placing two values at each point in time a new value occurs to create the stepped transition. I was able to fix this by using Formula to create two new signals which are discrete.

$x.toDiscrete()

I still used the original stepped values to create the In Range/Out of Range conditions, but used the discrete values to display on the scatter plot. My limits are 0 - 4 for Y and 40 - 50 for X. Here's the before and after.

Hope this helps,

Andrew

 

BEFORE

image.thumb.png.c8afd1890aeee3607927cddb64227c5b.png

AFTER

image.thumb.png.6cee539f733f7b8cb8fa4601ab3dc596.png

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