From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-07-2011 09:55 AM
Hi to all,
I cannot seem to get to show the grid lines on an intensity graph. They do show anywhere there is no data, but where there is data they are hidden. Is this a bug or am I doing something wrong?
griStats.Plot(stats) intensityPlot.PixelInterpolation = True griStats.XAxes(0).MajorDivisions.GridLineStyle = UI.LineStyle.Solid griStats.XAxes(0).MajorDivisions.GridColor = Color.Black griStats.XAxes(0).MajorDivisions.Base = 0 griStats.XAxes(0).MajorDivisions.Interval = 1 griStats.XAxes(0).MajorDivisions.GridVisible = True griStats.XAxes(0).Range = New UI.Range(0, UBound(twa)) griStats.YAxes(0).MajorDivisions.GridLineStyle = UI.LineStyle.Solid griStats.YAxes(0).MajorDivisions.GridColor = Color.Black griStats.YAxes(0).MajorDivisions.Base = 0 griStats.YAxes(0).MajorDivisions.Interval = 1 griStats.YAxes(0).Range = New UI.Range(0, UBound(tws)) griStats.YAxes(0).MajorDivisions.GridVisible = True
Thanks for your help,
CD
Solved! Go to Solution.
01-07-2011 10:49 AM
It looks very much like a z-order problem or something of the sort.
01-11-2011 01:35 AM
Hey there,
Try this. Hook on to the IntensityGraph.AfterDrawPlot event.
private void intensityGraph1_AfterDrawPlot(object sender, NationalInstruments.UI.AfterDrawIntensityPlotEventArgs e)
{
intensityGraph1.DrawGridLines(new NationalInstruments.UI.ComponentDrawArgs(e.Graphics, e.Bounds));
}
Hope this helps.
Vijet Patankar,
National Instruments
01-13-2011 05:07 AM
That worked great, thank you very much.
CD
07-21-2015 09:02 AM - edited 07-21-2015 09:05 AM
Hi, is this still the only way? This solution is from 2011 so perhaps there's a setting instead of this "hack"?
By the way, I am using WPF so not even sure if this solution will work.
Thank you!
07-21-2015 10:58 AM
This post does not pertain to WPF. Please create a new thread describing the issue you are seeing with the WPF graph.
Thanks,