[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ePiX-users] 3D datafile plotting
From: |
Andrew D. Hwang |
Subject: |
Re: [ePiX-users] 3D datafile plotting |
Date: |
Fri, 28 Nov 2008 19:51:22 -0500 (EST) |
On Fri, 28 Nov 2008, Constantin Greubel wrote:
> one simple question: Is it possible to generate a 3D plot where the data
> points come from a datafile?
>
Hi Constantin,
Yes. :) For example, to make a 3D scatter plot with BOX markers using the
first three columns of a data file, you can do:
datafile df("myfile.dat");
df.plot(BOX, 1, 2, 3);
In case it's useful, if F is a P-valued function of three doubles, the
command
df.plot(BOX, i1, i2, i3, F);
creates a 3-D scatter plot by passing columns i1, i2, and i3 to F and
plotting the resulting points.
Best,
Andy
Andrew D. Hwang address@hidden
Department of Math and CS http://mathcs.holycross.edu/~ahwang
College of the Holy Cross (508) 793-2458 (Office: Swords 339)
Worcester, MA, 01610-2395 (508) 793-3530 (fax)