[Paraview] Plot over Line source
Cory Quammen
cory.quammen at kitware.com
Tue Sep 8 09:00:50 EDT 2015
Hi Richard,
You won't be able to set a vtkDataArray subclass as the input to a
PlotOverLine filter. Instead, you should read the log files in a
Programmable Source, and connect the Programmable Source to the
PlotOverLine filter.
See Chapter 13 of the ParaView Guide [1].
Hope that helps,
Cory
[1]
http://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v4.3&type=data&os=all&downloadFile=TheParaViewGuide-v4.3-CC-Edition.pdf
On Tue, Sep 8, 2015 at 3:57 AM, no name <keinepostnurmuell at gmail.com> wrote:
> 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
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150908/7bc83fb8/attachment.html>
More information about the ParaView
mailing list