DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Creating a contour image from .csv

 
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C#
View previous topic :: View next topic  
Author Message
Jack32



Joined: 13 Jun 2012
Posts: 3

PostPosted: Wed Jun 13, 2012 10:36 am    Post subject: Creating a contour image from .csv Reply with quote

I'm new to DPlot and need some assistance.

I am currently using the DPlot evaluation to make sure it can do what I need it to before we purchase it.
I am using Visual Studio 2010 and coding in C#.

I have a .csv file that has approximately 100 different x, y, and z coordinates I need to create a contour image of the points. I know I can do this because I was able to open and load the points from DPlot. I am looking to create an application in visual studio that will allow a user to select a .csv file and then it creates a contour image on the screen. I am having trouble using DPlot with C#.

All assistance is greatly appreciated
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2290
Location: Vicksburg, Mississippi

PostPosted: Wed Jun 13, 2012 1:59 pm    Post subject: Reply with quote

If you have all the DPLOTLIB distribution files, I'd suggest starting with dplotlib\csharp\test2 and plugging in code to read a file rather than generating it within the program. Please let me know if you have any problems.
_________________
David Hyde
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jack32



Joined: 13 Jun 2012
Posts: 3

PostPosted: Thu Jun 14, 2012 9:19 am    Post subject: Reply with quote

Where would I plug in the code to load the file?
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2290
Location: Vicksburg, Mississippi

PostPosted: Thu Jun 14, 2012 3:16 pm    Post subject: Reply with quote

As the first step, before assigning things like the number of points, etc.
_________________
David Hyde
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jack32



Joined: 13 Jun 2012
Posts: 3

PostPosted: Mon Jun 18, 2012 1:26 pm    Post subject: Reply with quote

I looked and have attempted to plot the data but have been unsuccessful so far. I can load my data and put all the points in separate arrays. After that I am not sure what to do with the values to plot a contour map or 3d scatter plot?

I have my data in three arrays Xarray[], Yarray[], Zarray[];
I have been trying to use DPlot_Plot8() to plot my arrays but I can't get it to work.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2290
Location: Vicksburg, Mississippi

PostPosted: Mon Jun 18, 2012 5:58 pm    Post subject: Reply with quote

Take another look at the test2 demo in

Code:
private void button2_Click


It is easiest to use a 2D array as is done in the demo. If you need/want a single dimension, then X0 goes to Array[0], Y0 to Array[1], Z0 to Array[2], X1 to Array[3], etc.
_________________
David Hyde
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C# All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group