The AddArrayGrid method below gives me a nice surface.
TChart1.Series(2).asSurface.AddArrayGrid UBound(Positions), UBound(StepAngles), AmpGrid
Using AddArrayGrid, however, does not supply the min and max values for the X and Z axes that I need. So I thought the solution would be to use SetMinMax, but I'm having no luck getting the desired min and max values for axes displayed when I use AddArrayGrid on the surface series.
Any thoughts of what to try would be much appreciated.
No axis min / max using AddArrayGrid or SetMinMax
No axis min / max using AddArrayGrid or SetMinMax
Thanks, DTech
Hi,
using the following simple example works fine here (using the v7) :
using the following simple example works fine here (using the v7) :
Code: Select all
Private Sub Form_Load()
Dim XZArray() As Double
Dim x As Integer, z As Integer
With TChart1
.Legend.Visible = False
.AddSeries scSurface
.Axis.Depth.Visible = True
' initialize dynamic array grid
ReDim XZArray(35)
' fill with random values
For x = 0 To 4
For z = 0 To 6
XZArray(x * 7 + z) = Rnd
Next z
Next x
' add to 3D series:
.Series(0).asSurface.AddArrayGrid 5, 7, XZArray
.Axis.Bottom.SetMinMax 1, 4
.Axis.Depth.SetMinMax 2, 4
End With
End Sub
Pep Jorge
http://support.steema.com
http://support.steema.com
Other SetMinMax parameters shift plot around
Yes, that works, but try the SetMinMax with different parameters:
.Axis.Bottom.SetMinMax 10, 40
.Axis.Depth.SetMinMax 20, 40
OR
.Axis.Bottom.SetMinMax -1, 2
.Axis.Depth.SetMinMax -2, 0
The chart is not seen or only partially seen. When using .asSurface.AddArrayGrid, how can I display the chart data within the max/min I want since AddArrayGrid's parameter list does not provide this infomation? Thanks!
.Axis.Bottom.SetMinMax 10, 40
.Axis.Depth.SetMinMax 20, 40
OR
.Axis.Bottom.SetMinMax -1, 2
.Axis.Depth.SetMinMax -2, 0
The chart is not seen or only partially seen. When using .asSurface.AddArrayGrid, how can I display the chart data within the max/min I want since AddArrayGrid's parameter list does not provide this infomation? Thanks!
Thanks, DTech