How do you use contour custom levels
Posted: Sun Jan 01, 2006 11:26 am
How do you use contour custom levels? I have looked at the example in
Contour_CustLev.cs and they way that it works seems messy. First it
draws a contour plot using automatic levels. Then to use custom levels
you turn off automatic levels then manually fill in the Levels values.
Is there a way to draw a contour plot straight off with custom levels
without drawing an automatic level plot first? The problem is that if you
try to assign your custom levels before drawing the plot the Levels
ArrayList has not been allocated. I have gotton this to work by setting
AutomaticLevels then changing the levels to custome levels in the
BeforeDrawValues event. That's extremely messy and cryptic. And I'm
not sure that my levels won't get overwritten anyway.
Contour_CustLev.cs and they way that it works seems messy. First it
draws a contour plot using automatic levels. Then to use custom levels
you turn off automatic levels then manually fill in the Levels values.
Is there a way to draw a contour plot straight off with custom levels
without drawing an automatic level plot first? The problem is that if you
try to assign your custom levels before drawing the plot the Levels
ArrayList has not been allocated. I have gotton this to work by setting
AutomaticLevels then changing the levels to custome levels in the
BeforeDrawValues event. That's extremely messy and cryptic. And I'm
not sure that my levels won't get overwritten anyway.