I don't think Plot Global Variables Over Time works the way you think it does. 
This filter assumes that the global arrays contain a static array the same size 
as the number of time steps and then plots that with the time array on the x 
axis and the entries in this array in the y axis. If the size of the global 
variable does not equal the number of time steps, the view will show nothing.

I think you really want to use Plot Selection Over Time. That you can give a 
value and it will iterate the pipeline over time and compute the value for each 
time step. Unfortunately, it looks like the filter is broken for selections on 
field data. It works, however, on table data, so you can write the result as 
that.

I got what I think you want using the can data set. Here are the steps I used:

1. Load can.ex2. All variables. Apply.
2. Add the Programmable Filter. Set the output type to vtkTable (!) and use the 
following script:
disp_y = inputs[0].PointData["DISPL"][:,1]
mean_disp = mean(disp_y)
output.RowData.append(mean_disp, "MEAN_DISP")
3. Select the single row shown in the spreadsheet that pops up.
4. Add Plot Selection Over Time filter. Apply.

-Ken

From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Scott, W Alan
Sent: Thursday, March 23, 2017 3:06 PM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] How do you "see" FieldData

>From a user:




How do you "see" FieldData variables created in the ProgrammableFilter in the 
PlotGlobalVariablesOverTime filter?  I'm creating a FieldData variable in the 
ProgrammableFilter.  Now I'd like to plot it over time.  It isn't available as 
an option for me to plot, though.  I see other global variables, just not this 
one.



disp_y = inputs[0].PointData["displ_"][:,1]



mean_disp = mean(disp_y)



output.FieldData.append(mean_disp, "MEAN_DISP")





Am I doing something wrong here?

Thanks,

Alan


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to