Hey there

I have some hundred VTU files and I want to plot some data in a graph (Plot
over Line - POL) next to it. The Problem is, the data from these POLs is
coming from a simple log file, basically conaining only x and y values
(like two np.arrays).

I can transform the arrays via

from vtk.util import numpy_support
values = np.array((x,y))
vtk_values = numpy_support.numpy_to_vtk(values, array_type=vtk.VTK_FLOAT)
vtk_values.setName('values_2_show')
vtk_values.setComponentName(1, 'x_value')
vtk_values.setComponentName(2, 'y_value')

But so far I have no success with how to change the input (source)

VTUFILE = FindSource('VTUFILE*')
plotOverLine1 = PlotOverLine(Input=VTUFILE, Source='High Resolution
Line Source')

to a simple array.

Thanks for any help!
Richard
_______________________________________________
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