TBar3DSeries
Posted: Wed Dec 19, 2012 3:35 pm
Hi
I am plotting a TBar3D series to display temperature anomalies. Positive values get plotted above the zero line in red whilst negative values get plotted under the zero line in blue. The problem is that the zero line is sometimes aligned with the zero grid line, other times it floats +0.1 or +0.2 above the zero line. Can you suggest a fix or a workround? I have Use Origin ticked and the value set to zero.
Bruce.
I am plotting a TBar3D series to display temperature anomalies. Positive values get plotted above the zero line in red whilst negative values get plotted under the zero line in blue. The problem is that the zero line is sometimes aligned with the zero grid line, other times it floats +0.1 or +0.2 above the zero line. Can you suggest a fix or a workround? I have Use Origin ticked and the value set to zero.
Code: Select all
if Grid.Floats[6,r]>0 then
Series.AddBar(Grid.Dates[0,r],Grid.Floats[6,r],0,'',clRed)
else
Series.AddBar(Grid.Dates[0,r],0,Grid.Floats[6,r],'',clBlue);