Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with PlotAreaColor

I am using measurment Studio Dotnet version 7.1 for C#. I used PlotAreaColor to change the color of wavefromGraph (this.waveformGraph1.PlotAreaColor = Color.Red) plot area and for some problem it comes back all the time as black. Through the debugger I see the property has been set to the right color. I see two very narrow lines in left and right side of plot area with the correct color but not the whole plot area.
0 Kudos
Message 1 of 5
(3,902 Views)
Hello

I can't reproduce this problem. I just dropped a graph and added the PlotColorArea statement in the Form1 constructor and graphed some data. Seemed to work fine.

Could you post some sample code that I could use to reproduce the problem?

Thanks

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,902 Views)
I can include some code but you can't run it directly but you may look at the code and find some mistake. In this file search for this.waveformGraph1.PlotAreaColor. Every time I clear the plot area to plot another set of waveform I set the PlotAreaColor.
0 Kudos
Message 3 of 5
(3,902 Views)
It seems to look ok. I've been using the attached project to try to replicate the problem. Could you modify this to re-create the problem and post it back?

Thanks

Bilal
Bilal Durrani
NI
0 Kudos
Message 4 of 5
(3,901 Views)
Hello
I found out what was wrong. The problem wasn't PlotAreaColor. The problem was xAxis.MinorDivisions. I have MinorDivisions visible and the color of them was black and when we have so many samples these MinorDivisions covers all the plot area. To fix the problem I need to do the following:
xAxis.MinorDivisions.GridVisible = false. I don't need MinorDivisions at all. Some how it gets set to true in InitializeComponent().
0 Kudos
Message 5 of 5
(3,901 Views)