LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the graph backgroundcolor ONLY between two (position free) cursors in a graph

I got two graphs that plot the same data out.!
I got two cursors in graph1 that controls two other cursors in another graph2. I need to have a different background color in graph2 but only between the controlled cursors, just to know where i am in graph2 and know what data i'm looking at.!
 
hope it understandable.
 
Zamzam
HFZ
0 Kudos
Message 1 of 7
(3,306 Views)

This is not a native function of the graph.

You may be able to give this impresion by adding two additional plots that consist of only the data points between the two cursors an dthen setting one for a fill base line of pos infinity and anther for neg infinity.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 7
(3,297 Views)
what do u mean by adding two plots more,
 
what do they have in common with the graph2.
 
I made a diffent style now, what do u suppose!
 
 
HFZ
0 Kudos
Message 3 of 7
(3,284 Views)
Here is a way to do it. A second plot set to fill to -inf is added. Part on the plot outside the cursors are set to NaN and part within the cursors is set to +inf.

Message Edité par Jean-Pierre Drolet le 03-02-2006 09:33 AM



LabVIEW, C'est LabVIEW

Message 4 of 7
(3,288 Views)

A lot Thanks for the solution,  to both jean.piere and Ben.... (Affleck ..?)

-----------------------

If you can't walk trough the wall...then climb over it.  Cant you climb over it...then walk around it!

---------------------

Thanks guys!

HFZ
0 Kudos
Message 5 of 7
(3,277 Views)

Hi all

-Jean piere... or who can help 

I'm trying now to reverse the function, so I can control the cursors from graph1´instead, and show their positioning as the x-scale in graph2.

So i'll have the box, made from the cursors in graph1, to be colored now, But I cant figure out how, Some times i get hall the data curve in graph1 to be colored insted, but thats not what i really want. If in another methode i can get the curve only inside the cursor box in graph1, to be colored , that will be ofcourse a good solution too.

Can someone meaby tell me what exactly what the small piece of code, by adding the 'NaN' and The 'Inf' constants, do, I cant really figure how they work.

Zamzam 

HFZ
0 Kudos
Message 6 of 7
(3,256 Views)
Hey Guys,
Thanks for help , I think I solved it any way.. thaaaaaankss again jean and Ben.
Zamzam 
HFZ
0 Kudos
Message 7 of 7
(3,253 Views)