MantisBT - ParaView
View Issue Details
0004996ParaView(No Category)public2007-05-08 17:002009-05-13 13:46
Jon Goldman 
Utkarsh Ayachit 
normalminoralways
closedwon't fix 
 
3.6 
0004996: 2nd plot view appears after opening file, expected different behaviour
When I start PV3 with an XY plot window and load data that can be viewed in a XY plot, I expect the data to show up in the active view. Instead, a new (bar chart?) view gets created.

Here is the sequence of steps:
-- start ParaView3
-- close the 3D view
-- click on Create View XY Plot button
-- plot view is now visible and highlighted in red
-- open a data file, e.g. a CSV file with plots in it
-- click apply
-- A second view (looks like bar chart) appears to the right of the first XY plot. It has four squares and axes go from -1 to 1. I expected the first XY plot window to be filled with an XY plot data, not get a second window (see attached iamge)
No tags attached.
jpg 2nd plot view bug.jpg (140,831) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5996/2nd%20plot%20view%20bug.jpg
jpg
Issue History
2008-04-09 20:38Berk GeveciCategory => 3.6
2009-02-16 15:15Ken MorelandAssigned ToBerk Geveci => Utkarsh Ayachit
2009-02-17 11:07Utkarsh AyachitNote Added: 0015017
2009-02-17 11:07Utkarsh AyachitStatustabled => @80@
2009-02-17 11:07Utkarsh AyachitResolutionopen => won't fix
2009-02-17 21:57Alan ScottNote Added: 0015123
2009-02-17 21:57Alan ScottStatus@80@ => closed
2009-05-13 13:46Utkarsh AyachitTarget Version => 3.6
2011-06-16 13:10Zack GalbreathCategory => (No Category)

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.