multiple vertical lines

Support questions for Flow CSV Viewer and Editor.
Post Reply
menglish
Posts: 1
Joined: Wed May 15, 2024 1:46 pm

multiple vertical lines

Post by menglish »

Hi,

I have seen the cursor put a vertical line on a plot.

Is there a manner to have three vertical lines at the same time so I can mark individual x-axis time stamps?

I am plotting a start time for a device and to see it's response time so I would like to have a vertical line for the 0-point, idle point before it reacts, and when it settles at the target signal.
Waveworks
Posts: 188
Joined: Thu Sep 05, 2019 1:05 pm

Re: multiple vertical lines

Post by Waveworks »

Hi,

There is no support for multiple cursors, but if I understand you right, I think you can achieve what you want either with a boolean expression search or with a boolean formula which you then show on the X axis. To start with a boolean expression search, deselect all variables, press Ctrl-F and write a boolean expression like this:

t == 0 or t == 1234 or t == 5678

That will select the samples at positions 0, 1234 and 5678 and show a blue vertical line over them. You can of course write other dynamic expressions instead of t == 1234 or t == 5678. The problem with this approach is that the lines dissapear as soon as you select something else.

For a more persistent marking, you can create a formula like this:

markers = t == 0 or t == 1234 or t == 5678

and then you can drag the marker variable to the ruler above the graph. That way, these three X positions will be marked in the ruler and there will be vertical grid lines under these samples, and they will stay even if you select other samples or variables.

Hope this helps, otherwise let me know if I misunderstood your question!

Best regards,
Gustaf
JeffreyP
Posts: 1
Joined: Wed Aug 06, 2025 4:12 pm

Re: multiple vertical lines

Post by JeffreyP »

Above you've noted a "marker" to be shown on x-axis with specific "t" value(s).

Is there a formula that would find the max value of variable x and set the variable "marker" to the "t" that corresponds to the max value of variable x in the range of 100 < t < 200
And maybe have multiple ranges?

I can find the max value of the variable with range selection and info at the bottom of the window.

Thank you for such a great tool.
Waveworks
Posts: 188
Joined: Thu Sep 05, 2019 1:05 pm

Re: multiple vertical lines

Post by Waveworks »

Hello,

I see what you mean, but unfortunately this is currently not possible, because the formula engine can currently only look backwards in time. The closest you can get is something like this:

max_x = x if t == 101 or x > max_x[t-1] else max_x[t-1]
marker = x > max_x[t-1] and t > 100 and t < 200

That would set marker to 1 for each sample in the interval where x is greater than any previous x value, and the last (rightmost) marker is the one you're asking for.

I'm noting a request for a function that provides the maximum/minimum value of a variable within a given range.

Best regards.
Gustaf
Post Reply