[Paraview] Python Scripting: Managing the Histogram Outputs

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Oct 16 11:53:53 EDT 2015


Do you intend to write the data out as CSV? You can simply use the
CSVWriter as follows:

histogram1 = ....
SaveData('/tmp/sample.csv', proxy=histogram1)

Utkarsh

On Fri, Oct 16, 2015 at 11:23 AM, mohammadreza yaghoobi
<mohammadreza.yaghoobi at gmail.com> wrote:
> Dear all,
>
>          I'm trying to handle the output of Histogram filter in my python
> script. First I use extract selection to select a specified geometry of a
> VTK file. Then, I apply the Histogram Filter. Now, I want to write the
> outputs of Histogram in the external text file. The outputs of Histogram are
> represented in the data arrays part of information, and in my case, it's the
> total length of the selected lines.
>       However, I don't know how should I access to this information in
> paraview.simple.
>
> Thanks for your time,
>
> Best,
> Mohammadreza
>
> +++++++++++++++++++++++++++++++++++++++++++++++
> Mohammadreza Yaghoobi
> PhD Candidate
> Civil Engineering Department
> Louisiana State University
>
> _______________________________________________
> 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
>


More information about the ParaView mailing list