12-15-2015 03:38 PM
I have to test every single point on my plot against Min/Max values specific to location. I made everything work but I'd like to better indicate valid channel on the Graph.
This is what I have... As you can see, the bold blue line is the actual data and thin blue lines represent the valid channel my data has to fall in. If it's outside the channel, I mark those points in red.
This ^ is sufficient but I'd like to make something like picture below, if possible and isn't "expensive" (I mocked this up in Painshop):
Thanks!
Solved! Go to Solution.
12-15-2015 04:56 PM
("Painshop" — that must have hurt! 🙂
I would suggest using an AreaPlotRenderer
for the minimum and maximum plots, configured with a FillBaseline
of NegativeInfinity
and PositiveInfinity
, respectively:
<ni:Graph>
<ni:Graph.Plots>
<ni:Plot Label="Minimum Plot">
<ni:AreaPlotRenderer FillBaseline="NegativeInfinity" />
</ni:Plot>
<ni:Plot Label="Maximum Plot">
<ni:AreaPlotRenderer FillBaseline="PositiveInfinity" />
</ni:Plot>
</ni:Graph.Plots>
</ni:Graph>
12-16-2015 09:12 AM
Bucket Fill is your friend LOL.
I love how flexible your tools are! This is working very nicely but I just wanted to ask if it's possible to set Opacity in this line or does it have to be done separately down the road. I have a hardcoded collection of plots that I use throughout my applications.
Thanks!
private static readonly AreaPlotRenderer AreaPlotRendererNegative1 = new AreaPlotRenderer() { Fill = Brush1, FillBaseline = FillBaseline.NegativeInfinity };
12-16-2015 09:36 AM
12-16-2015 10:22 AM
It's a beaut!
12-16-2015 10:24 AM
Very nice!