V2.0.5.7 and DDE non-variant random 3D plots

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
meany
Posts: 16
Joined: Mon Jul 21, 2003 7:48 am
Location: Missouri

V2.0.5.7 and DDE non-variant random 3D plots

Post by meany »

David,
I tried the new version release V2.0.5.7, passed over a non-variant random 3D dataset through DDE and I'm still having troubles. It pops a timeout error box quickly, maximizes the hidden DPlot, and returns a NULL HBITMAP on my DPlot_PlotBitmap call. I can see non-variant data if I go through DPlot directly now, but does it work through DDE? It might be some other combination of the commands I send for the ManualScale or something, but I don't know what else to try. (On the ManualScale, I tried Z hi and low extents equal to the single value, and I tried them expanded around the single value.) I can send you the command string and the data if you'd like. Sorry, my data is a pain![/img]
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Charlotte,
(After a momentary panic thinking I might have broken everything :-)), the demo programs work fine, at least here. I just tried the C example with 100,000 random points and producing those 100K points, sending them to DPlot and retrieving a bitmap took about 3 seconds. So I don't know what might be going wrong in your case. You're of course welcome to send me whatever you have and I'll take a look as soon as possible.
Visualize Your Data
support@dplot.com
meany
Posts: 16
Joined: Mon Jul 21, 2003 7:48 am
Location: Missouri

Post by meany »

Glad yours works! Wish mine did! Maybe I broke everything! Were all your Z-values non-variant? This example has them all zero.

Here's my commands:
[ContourLegend(1)][Contour3D(0)][ContourMethod(0)][ContourLevels(32,0,0)][ContourColorScheme(2)][ContourCustomColors(16711680,16776960,65280,65535,255,16711935)][ContourLegendFrequency(4)][ManualScale(10.16,-40.64,154.94,40.64,0,0)][ContourGrid(0)][ContourScales(0.561403,1,1)][LineType(-1,1)][LineWidth(1,1)][CopyPicture()][TextFont(1,8,0,0,0,0,0,"Arial")][TextFont(3,8,0,0,0,0,0,"Arial")][TextFont(2,12,700,0,0,0,0,"Arial")][TextFont(4,12,0,0,0,0,0,"Arial")][TextFont(5,12,0,0,0,0,0,"Arial")][TextFont(6,8,0,0,0,0,0,"Arial")]

Here's my data:
10.16 -40.64 0
20.5014 -40.64 0
30.8429 -40.64 0
41.1843 -40.64 0
51.5257 -40.64 0
61.8671 -40.64 0
72.2086 -40.64 0
82.55 -40.64 0
92.8914 -40.64 0
103.233 -40.64 0
113.574 -40.64 0
123.916 -40.64 0
134.257 -40.64 0
144.599 -40.64 0
154.94 -40.64 0
10.16 -30.48 0
20.5014 -30.48 0
30.8429 -30.48 0
41.1843 -30.48 0
51.5257 -30.48 0
61.8671 -30.48 0
72.2086 -30.48 0
82.55 -30.48 0
92.8914 -30.48 0
103.233 -30.48 0
113.574 -30.48 0
123.916 -30.48 0
134.257 -30.48 0
144.599 -30.48 0
154.94 -30.48 0
10.16 -20.32 0
20.5014 -20.32 0
30.8429 -20.32 0
41.1843 -20.32 0
51.5257 -20.32 0
61.8671 -20.32 0
72.2086 -20.32 0
82.55 -20.32 0
92.8914 -20.32 0
103.233 -20.32 0
113.574 -20.32 0
123.916 -20.32 0
134.257 -20.32 0
144.599 -20.32 0
154.94 -20.32 0
10.16 -10.16 0
20.5014 -10.16 0
30.8429 -10.16 0
41.1843 -10.16 0
51.5257 -10.16 0
61.8671 -10.16 0
72.2086 -10.16 0
82.55 -10.16 0
92.8914 -10.16 0
103.233 -10.16 0
113.574 -10.16 0
123.916 -10.16 0
134.257 -10.16 0
144.599 -10.16 0
154.94 -10.16 0
10.16 0 0
20.5014 0 0
30.8429 0 0
41.1843 0 0
51.5257 0 0
61.8671 0 0
72.2086 0 0
82.55 0 0
92.8914 0 0
103.233 0 0
113.574 0 0
123.916 0 0
134.257 0 0
144.599 0 0
154.94 0 0
10.16 10.16 0
20.5014 10.16 0
30.8429 10.16 0
41.1843 10.16 0
51.5257 10.16 0
61.8671 10.16 0
72.2086 10.16 0
82.55 10.16 0
92.8914 10.16 0
103.233 10.16 0
113.574 10.16 0
123.916 10.16 0
134.257 10.16 0
144.599 10.16 0
154.94 10.16 0
10.16 20.32 0
20.5014 20.32 0
30.8429 20.32 0
41.1843 20.32 0
51.5257 20.32 0
61.8671 20.32 0
72.2086 20.32 0
82.55 20.32 0
92.8914 20.32 0
103.233 20.32 0
113.574 20.32 0
123.916 20.32 0
134.257 20.32 0
144.599 20.32 0
154.94 20.32 0
10.16 30.48 0
20.5014 30.48 0
30.8429 30.48 0
41.1843 30.48 0
51.5257 30.48 0
61.8671 30.48 0
72.2086 30.48 0
82.55 30.48 0
92.8914 30.48 0
103.233 30.48 0
113.574 30.48 0
123.916 30.48 0
134.257 30.48 0
144.599 30.48 0
154.94 30.48 0
10.16 40.64 0
20.5014 40.64 0
30.8429 40.64 0
41.1843 40.64 0
51.5257 40.64 0
61.8671 40.64 0
72.2086 40.64 0
82.55 40.64 0
92.8914 40.64 0
103.233 40.64 0
113.574 40.64 0
123.916 40.64 0
134.257 40.64 0
144.599 40.64 0
154.94 40.64 0
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

It will be late tonight before I have a chance to dive into this, but I'm curious about what you're up to? Since you can't programmatically edit the Z values of a data point, what's the point of all those 0's?
Visualize Your Data
support@dplot.com
meany
Posts: 16
Joined: Mon Jul 21, 2003 7:48 am
Location: Missouri

Post by meany »

I have a 3D space that I slice and dice into X, Y, or Z planes and let my user see your shaded band contour plots for individual planes in that space. It happens that some planes have non-variant data. My application allows different views into that data. They can also opt for line plots where two planes intersect and I send DPlot the points for those lines. My C++ application has OpenGL 3D views that animate through the space in addition to the DPlot plots.

I tried sending the Z extent hi and low for the entire space, not just the plane, but still had the same error (ie, I sent [ManualScale(10.16,-40.64,154.94,40.64,-3.75573,15.0682)]).
meany
Posts: 16
Joined: Mon Jul 21, 2003 7:48 am
Location: Missouri

Post by meany »

I didn't say this in my previous post, but my 3D space (cartesian coord. system) is filled with a parameter of interest--a fourth dimension, per se. By the time I send data to DPlot, the "X" and "Y" values are two of the cartesian values (reducing the data to a single plane), and the "Z" value of the contour plot is the fourth dimension. Does that make sense now?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Yes, thanks.
Visualize Your Data
support@dplot.com
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

I'm not sure what's going on yet, but your example will work fine with [ContourMethod(1)] (contour lines). I'll fix this as soon as possible.
Visualize Your Data
support@dplot.com
Post Reply