10-09-2009 10:22 AM
I have a waveform plot that has a Y-Axis range from 0 to 127. It is important that the plot goes from 0 to 127. The problem is normally the device I am measuring returns 127 for most conditions. I am currently using a Line-To-Base style plot but would like the lines to go from the top of the chart down. Unfortunately there is no apparent way to get a Line-To-Top style.
I attached my plot. As you can see I would like the lines to go from the top down.
Here is my code for setting up the style of the waveformPlot (linemode is true):
waveformPlot4.FillBase = XYPlotFillBase.YValue;
waveformPlot4.ToolTipsEnabled = true;
waveformPlot4.DefaultStart = lowerLimit;
waveformPlot4.DefaultIncrement = spacing;
waveformPlot4.YAxis = axis3;
waveformPlot4.PointStyle = PointStyle.Cross;
waveformPlot4.PointColor = Color.Yellow;
if (!lineMode)
{
waveformPlot4.FillMode = PlotFillMode.None;
waveformPlot4.LineColor = Color.Yellow;
}
else
{
waveformPlot4.FillMode = PlotFillMode.Lines;
waveformPlot4.LineColor = Color.Empty;
waveformPlot4.LineToBaseWidth = 1;
waveformPlot4.LineToBaseColor = Color.Yellow;
}
Solved! Go to Solution.
10-09-2009 11:47 AM
Hello -
You're almost there - just missing one line. This should do it for you:
NickB
National Instruments
10-12-2009 09:09 AM