T O P I C R E V I E W |
soundar |
Posted - 01 Aug 2008 : 16:25:20 I am plotting a graph that tracks the pressure point of an object that Is placed On a rectangular platform And then moved around. We calculate the load sensed at the four corners, compute the center of gravity and this way we know where the object is.
I am using a XYScatter plot that seems to work very well for this purpose. As the object is moved around, I add the new location to the dataset and then simply do
<RTProcessVar>.TruncateProcessVarDataset(1)
so I only one point that is moving around on the plot.
Now in addition to the location, I also want to change the size of the symbol dynamically, so that as the pressure increases or decreases so the user can see how much pressure is applied.
I tried to do this before I call updatedraw like this:
Dim attrib As ChartAttribute = plotCG.GetChartObjAttributes attrib.SymbolSize = <new symbol size> attrib.SetColor(newColor) plotCG.SetChartObjAttributes(attrib) Me.UpdateDraw()
But these changes have no effect. Am I doing something wrong or this is just not possible? |
2 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 01 Aug 2008 : 17:30:21 Your second observation is correct. You should be changing the size of the scatter plot symbol for the underlying SimpleScatterPlot, since that is where you set it in the first place.
You can make anything global you want. Make a reference to the SimpleScatterPlot global to the class. |
soundar |
Posted - 01 Aug 2008 : 16:37:35 Followup to the above post: ---------------------------- I change the symbol size on the RTSimpleSingleValuePlot object. I notice that the SimplePlot used in the constructor also has GetChartObjAttributes and SetChartObjAttributes functions. Should I be changing the symbol size on the SimplePlot? If yes, how can I access this SimplePlot object in my Repaint method? Only my RTSimpleSingleValuePlot is global. |