Notes |
|
(0007618)
|
Berk Geveci
|
2007-05-10 14:07
|
|
By default, ParaView loads csv data a cell data. This is why it automatically creates a bar chart. To get around this, in the first row of the csv file, classify the data as point data. Something like:
"X::Point", "Foo::Point"
0, 2
3, 4
5, 12.4
In 3.2, we will add a flag on the reader that allows user to specify whether the data is a line or bar chart. |
|
|
(0007621)
|
|
2007-05-10 14:43
|
|
Berk,
I tried your suggestion, using your data example (by the way did you mean to write "PointData" instead of "Point"?), but it did not work for me, it still created a bar chart. This behaviour was the same for ParaView 3 branch, as well as the 3.1 trunk that I checked out a couple days ago.
This leads me to the next question, but it seems like the only way I can get the curves to show up is by selecting the Attribute mode as "Cell Data", in the Object Inspector, Display tab.
If I specify the arrays as "X::PointData" in the csv file, shouldn't I be able to select the Attribute Mode as "Point Data" and see the curve?
Even if this is by design, it is confusing that I want to see an XY plot of a bunch of points, but that I have to select something called "cell" to see the points/curve show up. This _WILL_ be confusing to our customer, as they know little, if anything about cells, and 3D topology/data sets.
-Jon |
|
|
(0007622)
|
Jon Goldman
|
2007-05-10 14:51
|
|
Berk,
I tried your suggestion, even tried your data, but I still get a bar chart view showing up. By the way, did you mean to write "X::Point" or "X::PointData"?
I tried this on the PV 3.0 branch, and the 3.1 trunk that I checked out a couple days ago and get the same behaviour.
This leads me to my next question-- Why do I have to select the Attribute mode as "Cell Data" to see the plot, i.e. what is the purpose of the Attribute Mode "Point Data"?
I guess I expected that when I specified data like this in the CSV file:
X::PointData
0
1
2
3
that I could select the Attribute Mode as Point Data to see the curve. The curves only show up when one selects "Cell Data." This seems confusing to me.
Even if this is by design, it _WILL_ confuse our customer who only look at 2D plots of points/lines, and know little, if anything, about cells and cell data.
-Jon
|
|
|
(0015017)
|
Utkarsh Ayachit
|
2009-02-17 11:07
|
|
Currently ParaView shows tabular data (read from CSV) in a spread sheet view by default. So ParaView creates spread sheet view. I wonder if that's an issue. If so, please reopen the bug. |
|
|
(0015123)
|
Alan Scott
|
2009-02-17 21:57
|
|
CSV data coming in as spreadsheet data sounds good to me. It also is a check for the user to make sure the data was read correctly. |
|