Problems with DPlot Jr & 3D data/ Help needed
Posted: Thu Mar 29, 2007 1:33 pm
Hi
I'm trying to code in C++ and I which to generate a 3D plot of none grid data ie x,y,z values.
I'm using Dev C++ (gcc / Wming complier).
On my installation of DPlot Jr /Dplot reg version. I am having data transfer problems with the C examples.
I get a blank Dplot window generated with all the examples except
CTEST3 and FTEST which do work.
The key difference is CTEST3 uses dplot_Command()
while the other examples use DPlot_Plot(&DPlot,x,y, cmds)
So using the command:..
for loop
ret = dplot_Command(DocNum, "[XY(1,2)]");
next itr
ret = dplot_Command(DocNum, "[XY(2,3)]");
etc..
I can sucessfully plot 2D points.
However when I try
ret = dplot_Command(DocNum, "[XYZ(1, 1,2,3)]");
or
ret = dplot_Command(DocNum, "[XYZ( 1.0,2.0,3.0)]");
I get a pop up box XYZ command : Wrong data type
then
Error processing this command.
Therefore my questions are:
Is there a way I can get the examples working?
What is the correct syntax for operation of the XYZ, XYZEx .. commands?
Thanks
Matt
I'm trying to code in C++ and I which to generate a 3D plot of none grid data ie x,y,z values.
I'm using Dev C++ (gcc / Wming complier).
On my installation of DPlot Jr /Dplot reg version. I am having data transfer problems with the C examples.
I get a blank Dplot window generated with all the examples except
CTEST3 and FTEST which do work.
The key difference is CTEST3 uses dplot_Command()
while the other examples use DPlot_Plot(&DPlot,x,y, cmds)
So using the command:..
for loop
ret = dplot_Command(DocNum, "[XY(1,2)]");
next itr
ret = dplot_Command(DocNum, "[XY(2,3)]");
etc..
I can sucessfully plot 2D points.
However when I try
ret = dplot_Command(DocNum, "[XYZ(1, 1,2,3)]");
or
ret = dplot_Command(DocNum, "[XYZ( 1.0,2.0,3.0)]");
I get a pop up box XYZ command : Wrong data type
then
Error processing this command.
Therefore my questions are:
Is there a way I can get the examples working?
What is the correct syntax for operation of the XYZ, XYZEx .. commands?
Thanks
Matt