Contour Levels

Q&A for Visual Basic, Visual Basic .NET, and PowerBasic developers using DPlot

Moderator: DPlotAdmin

Post Reply
cdimaria
Posts: 5
Joined: Thu Aug 03, 2006 9:06 am

Contour Levels

Post by cdimaria »

I have created a 3d scatter plot from some data representing various thicknesses. The data group has an aim thickness along with a min and max. I would like to set up the contour levels so that if a value is above the max it is represented by one color, below the min it would be a second color and if between min/max it would be a third color. Is this possible? If yes, how?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Yes, it is possible, though not as direct as you'd probably like and the legend will show values you don't necessarily care about.

Right-click on your plot and select Scatter Plot Options. Under Color Based On select Z value. Set Intervals to 3. For the lower limit use min - (max-min). For the upper limit use max + (max-min). This will result in the middle level ranging from min to max. As mentioned above, the legend will show the lower and upper limits; if you want to delete those labels you'll unfortunately need to edit an image of the plot in a paint program.
Visualize Your Data
support@dplot.com
cdimaria
Posts: 5
Joined: Thu Aug 03, 2006 9:06 am

Post by cdimaria »

David,

Thanks for the quick reply. I'm generating the plots in .NET2005 and displaying them on a picturebox. Are there cooresponding commands I can send? Sorry if this is obvious, I'm a newbie for this product. BTW, great stuff! I've been looking for weeks for something like this.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Thanks for your comments.

[ColorBasis(0)] bases colors on Z value.
[ContourLevels(numlevels,lo,hi)] assigns contour levels to Z values. You want numlevels=3, lo=min-(max-min), and hi=max+(max-min)
Visualize Your Data
support@dplot.com
Post Reply