Add data points to a Contour plot

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

Moderator: DPlotAdmin

Post Reply
wang
Posts: 2
Joined: Mon Aug 21, 2006 4:31 am

Add data points to a Contour plot

Post by wang »

Hi, there,

I am a new user of DPlot. I try to generate a Contour Plot by calling DPlot_Plot in my VB program. The plot is generated with contour lines, but no data points were shown. I know I can use the menu in DPlot Jr to add the data points. That is, I can use the "Contour Plot Options" menu item and then select "Draw data points". My question is, can I use a DPlot command that can be included in a call to DPlot so that the data points are added to the Contour plot automatically?

Thanks for any suggestions.

J
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

It isn't documented, but use SymbolType(1,1). The "style" is mostly ignored for now; 0 turns the feature off, non-zero draws small black dots.
Visualize Your Data
support@dplot.com
wang
Posts: 2
Joined: Mon Aug 21, 2006 4:31 am

Post by wang »

DPlotAdmin wrote:It isn't documented, but use SymbolType(1,1). The "style" is mostly ignored for now; 0 turns the feature off, non-zero draws small black dots.
Hi, David,

Thank you very much for the extremely quick and usful help. With the suggested command, I can now show data points in the contour plot. However, two problems remain.

1. The size of the symbol is small and cannot be increased.
2. In printed version, no data points appear at all in the contour plot.

I am looking forward to reply.

J
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

1. The size of the symbol is small and cannot be increased.
That's correct. This feature was added in a hurry and needs work. Soon you'll be able to control the symbol type and size.
2. In printed version, no data points appear at all in the contour plot.
The symbols are there, just very small. Currently the size is fixed at 3x3 pixels (or printer dots), which is just about useless for printers (at 1200 dpi, for example, the dots are 0.0025 inches square).
Visualize Your Data
support@dplot.com
Post Reply