How to plot a 3d charts with gaps in the data
Posted: Wed May 18, 2005 8:34 am
I have a patch of 3d data (say 7 by 5) which represents some statistics which have been binned. (the size of the bins are different in x and z)
I plot a 3d chart of the data and get a nice mountain / valley appearance.
I add a 'GetValueColor' to the chart so that I can colour the surface deending on the value
I am using 'irregular grid' although I am not sure what irregular grid actually means ?
I have 2 critical problems
1. I do not get an event for each position on the chart (and if I record events I get some of the values being asked for twice). So i can not set all the colours.
2. I do not want to to see some of the surface at all (ie it stands for no data as opposed to the data value being 0) so do not give a value to all points. For this data (say i do not provide a data point in the middle of the chart) the chart is not plotted properly at all. The chart also displays differently depending on how I load up the data (ie if I loop over x then z I get a different chart than looping over z then x). One of the two graphs will be correct.
How should I be doing my 3d chart ?
I plot a 3d chart of the data and get a nice mountain / valley appearance.
I add a 'GetValueColor' to the chart so that I can colour the surface deending on the value
I am using 'irregular grid' although I am not sure what irregular grid actually means ?
I have 2 critical problems
1. I do not get an event for each position on the chart (and if I record events I get some of the values being asked for twice). So i can not set all the colours.
2. I do not want to to see some of the surface at all (ie it stands for no data as opposed to the data value being 0) so do not give a value to all points. For this data (say i do not provide a data point in the middle of the chart) the chart is not plotted properly at all. The chart also displays differently depending on how I load up the data (ie if I loop over x then z I get a different chart than looping over z then x). One of the two graphs will be correct.
How should I be doing my 3d chart ?