NI مناقشة حول منتجات

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing colors of certain parts of plot, and manually scaling (XY Graph)

Hi, I have a question about manipulating an XY Graph.

 

1) Everytime the plot crosses the x-axis for y-value going upwards, I want the plot to change color, until it crosses the 0 again going upwards, and I want that specific portion to have a different color. It is really hard to explain this so I'm going to post a picture: 

 

[URL=http://img691.imageshack.us/i/xygraphexample.jpg/][IMG]http://img691.imageshack.us/img691/4540/xygraphexample.jpg[/IMG][/URL]

 

As you can see, if the graph crosses the x-axis while decreasing, it shouldn't change colour. Only increasing.

 

I cannot figure out how to do this. I know it will require multiple plots, but how would I randomly change the color as well as detect if its crossing it going upwards or not.

 

Any help would be appreciated.

 

Thanks

0 Kudos
Message 1 of 2
(7,360 Views)