Re: [opendx-users] Simple Graphing?

2005-02-15 Thread Urs Enke

Can I for example plot a line from a CSV File like this
0,100


In case you had spaces instead of commas, the following .general file (where 
the number of points and the name of the file are replaced by fitting values) 
suffices:


points = 10
file = input.dat
format = ascii
interleaving = field
field = x, y
structure = 1-vector, scalar
type = float, float
dependency = positions, positions
end

You simply need to connect [Import] - [Plot] - [Image], supplying [Import] 
with the name of the input file and general as the format. In [Plot], you 
can use { lin, log } as type input if you want the Y axis to be 
logarithmic. This and more info about [Plot] can be found on

http://opendx.npaci.edu/docs/html/pages/refgu104.htm#HDRPLOT

.general files can also be generated by using the Data Prompter, which asks 
you for your file's properties:

http://opendx.npaci.edu/docs/html/pages/qikgu030.htm

HTH,
Urs 



Re: [opendx-users] Simple Graphing?

2005-02-15 Thread David Thompson
There are lots of ways to do it in DX. Not quite sure what you mean 
by smooth, but take a look at the Plot examples.


David



I have been playing around with OpenDX for a few hours and it is a
cool program. One thing that I do a lot is plot lines/smoothed lines
from data in CSV files. Can OpenDX do this or do I need to use another
package for it?

Can I for example plot a line from a CSV File like this
0,100
1,49
2,24
3,12
4,6
5,3
6,1
7,0

And get graph with the points plotted and lines connecting them? What
about smoothed lines?

Whats the basic VP (Visual Program) to graph such a line from a file?

I know this may be an extremely simple task, perhaps even bellow
OpenDX, but its something I would like the be able to do so that I can
incorporate line graphs into OpenDX visualizations.

Thank you for your time,
Arrummzen



--
.
David L. Thompson   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804
Phone : (406)756-7472


Re: [opendx-users] Simple Graphing?

2005-02-15 Thread James Supancic
Please excuse my stupidity, 

What is a .general file? I know how to edit and create .net files
using the VPE, but I am unfamiliar with these .general files. What are
they? How do I use them?

Thank you for your time,
James Steven Supancic III

On Tue, 15 Feb 2005 23:51:53 +0100, Urs Enke [EMAIL PROTECTED] wrote:
  Can I for example plot a line from a CSV File like this
  0,100
 
 In case you had spaces instead of commas, the following .general file (where
 the number of points and the name of the file are replaced by fitting values)
 suffices:
 
 points = 10
 file = input.dat
 format = ascii
 interleaving = field
 field = x, y
 structure = 1-vector, scalar
 type = float, float
 dependency = positions, positions
 end
 
 You simply need to connect [Import] - [Plot] - [Image], supplying [Import]
 with the name of the input file and general as the format. In [Plot], you
 can use { lin, log } as type input if you want the Y axis to be
 logarithmic. This and more info about [Plot] can be found on
 http://opendx.npaci.edu/docs/html/pages/refgu104.htm#HDRPLOT
 
 .general files can also be generated by using the Data Prompter, which asks
 you for your file's properties:
 http://opendx.npaci.edu/docs/html/pages/qikgu030.htm
 
 HTH,
 Urs
 



Re: [opendx-users] Simple Graphing?

2005-02-15 Thread Urs Enke

What is a .general file? I know how to edit and create .net files
using the VPE, but I am unfamiliar with these .general files. What are
they? How do I use them?


As you wrote that you played with DX, I presume that you have tried some 
examples. In those, the Import module usually has a filename given as input to 
indicate where the data to be visualized resides. If your data is not in a 
format that DX understands 'naturally', you need to create a second file that 
refers to your actual data file and describes it.


.general stands for General Array Format; the DX manual simply refers to 
such files as header files because they only describe data, but do not 
contain any. When you use the Data Prompter (option General Array Format) 
for importing data, it will ask for your data file's structure and create such 
a header file. Alternatively, you can write one yourself -- e.g. using 
cutpaste from my former email. For own attempts, the following might help:

   http://opendx.npaci.edu/docs/html/pages/qikgu028.htm

As I mentioned, you can supply the Import module with the name of such an 
input file, but have to change the format input to general to tell the 
module about the given file's non-standard format. To sum it up: You will have 
a DX net ('visual program') whose Import module refers to a .general file, 
which in turn refers to your data table (.csv with commas replaced by spaces).