Initial contour data is 0,0,0 rather than my data.
Posted: Mon Jan 12, 2009 3:53 pm
I built a VB.2008 application based on the VB project1 example. I create the dataset of values. When Dpot generates the contour plot my initial data value becomes the 2nd data item, with 0,0,0 as the first. I have confirmed that i is equal to zero when the first node values are set.
code for setting the node values is
Node(i, 0) = yy
Node(i, 1) = J
Node(i, 2) = ROC
i = i + 1
241, 482 and 0.5 are the values for i = 0 with the plot I am generating.
After all the node values are created I generate the contour plot.
cmds = "[Caption(" & Chr(34) & "Reflective Distortion " & Chr(34) & ")]"
cmds = cmds & "[ContourAxes(1)][ContourGrid(0)][ContourLevels(20,0,1)][ContourMethod(0)]"
cmds = cmds & "[FontPoints(1,10)][FontPoints(6,10)][DocMaximize()]"
cmds = cmds & "[ZAxisLabel(" & Chr(34) & "z" & Chr(34) & ")]"
ret = DPlot_Plot8(d, 0, Node(0, 0), cmds)
When the plot is generated the first set of data points is 0,0,0 with the 2nd set being my values of 241, 482, 0.5. In Dplot I can of course delete that first row (edit data) and get the correct contour plot - but I sure don't want to have to manualy delete that row for every plot I generate.
How do I avoid that first data point set being 0,0,0 ?
code for setting the node values is
Node(i, 0) = yy
Node(i, 1) = J
Node(i, 2) = ROC
i = i + 1
241, 482 and 0.5 are the values for i = 0 with the plot I am generating.
After all the node values are created I generate the contour plot.
cmds = "[Caption(" & Chr(34) & "Reflective Distortion " & Chr(34) & ")]"
cmds = cmds & "[ContourAxes(1)][ContourGrid(0)][ContourLevels(20,0,1)][ContourMethod(0)]"
cmds = cmds & "[FontPoints(1,10)][FontPoints(6,10)][DocMaximize()]"
cmds = cmds & "[ZAxisLabel(" & Chr(34) & "z" & Chr(34) & ")]"
ret = DPlot_Plot8(d, 0, Node(0, 0), cmds)
When the plot is generated the first set of data points is 0,0,0 with the 2nd set being my values of 241, 482, 0.5. In Dplot I can of course delete that first row (edit data) and get the correct contour plot - but I sure don't want to have to manualy delete that row for every plot I generate.
How do I avoid that first data point set being 0,0,0 ?