[Paraview] xdmf: orders of Origin DXDYDZ arrays in Origin_DXDYDZ

2015-05-19 Thread Liang Wang
In the first place, I do not understand the difference between 3DRectMesh and 3DCoRectMesh. I picked the following coordinate for testing: Nz,Ny,Nx = [80, 90, 100] z0,y0,x0 = [-3.,-2.,-1.] lz,ly,lx = [Nz*3,Ny*2,Nx] dz,dy,dx = [lz/(Nz-1), ly/(Ny-1), lx/(Nx-1)] I found I have to use the following

[Paraview] Python API to set color palette?

2017-03-11 Thread Liang Wang
I don't find a dedicated Python function to set color palette. It does not appear to be an option to the simple.SaveScreenshot function either. Or, can I directly set each color available in the Edit -> Settings -> Color Palette? Best, Liang ___ Powered

[Paraview] StreamTracer: Combined ReasonForTermination or select individual polylines?

2017-03-14 Thread Liang Wang
If the IntegrationDirection is set to BOTH, the two segments of the streamlines from the seed might terminate for different reasons. For example, one end might end due to STAGNATION, the other due to OUT_OF_DOMAIN. When coloring by ReasonForTermination, then the two segments are colored differently

Re: [Paraview] StreamTracer: Combined ReasonForTermination or select individual polylines?

2017-03-14 Thread Liang Wang
A follow-up question: How to perform the `Find Data` by `criteria` in Python? I tried to record a macro but only got extractSelection1 = ExtractSelection(Input=tube1, Selection=None) On Tue, Mar 14, 2017 at 3:47 PM, Liang Wang wrote: > Thank you, Andy. > > > I): > > I&#x

Re: [Paraview] Attach arrows onto streamlines/stream tubes more smoothly

2017-03-15 Thread Liang Wang
Maybe try using using > either a > >> non-zero value for the Shaft radius that is bigger than the Tube radius > or > >> use the Cone glyph type instead. > >> > >> On Wed, Mar 15, 2017 at 5:59 PM, Liang Wang > wrote: > >>> > >&

[Paraview] Python: How to change the location and size of orientation axes?

2017-04-08 Thread Liang Wang
>From http://public.kitware.com/pipermail/paraview/2010-July/018081.html it was not possible back then to change the size of orientation axes. Is it possible now, hopefully through Python, too? ___ Powered by www.kitware.com Visit other Kitware open-sou

Re: [Paraview] Python: How to change the location and size of orientation axes?

2017-04-08 Thread Liang Wang
tXAxisCaptionActor2D(), axes.GetYAxisCaptionActor2D(), axes.GetZAxisCaptionActor2D(), ]: # set Positoin2 label.SetWidth(label.GetWidth() * 0.5) label.SetHeight(label.GetHeight() * 0.5) label.SetCaptionTextProperty(tprop) renderer.AddActor(axes) Interact() On Sat, Apr 8, 20

Re: [Paraview] Python: How to change the location and size of orientation axes?

2017-04-08 Thread Liang Wang
ius()*2.0) Interact() On Sat, Apr 8, 2017 at 7:46 PM, Liang Wang wrote: > I figured out a way by using the vtkAxesActor class directly. > > An example script: > > from paraview.simple import * > paraview.simple._DisableFirstRenderCameraReset() > > renderView1 = Get

[Paraview] Plain text data with white space delimiters; Use raw array as axis/variables

2018-01-26 Thread Liang Wang
Hi All, 1) Does the ParaView GUI read a plain text file with white space as delimiters? 2) Can ParaView use a giving 1d array as an axis? My problem: I have a plain text data file, each column is a different variable, and delimiters are white space, e.g., x y z variable1 variable 2 Is there a

Re: [Paraview] Plain text data with white space delimiters; Use raw array as axis/variables

2018-01-26 Thread Liang Wang
wrote: > Hi, > > ParaView should be able to handle this. Try giving the filename a .csv > extension and then add a space for the Field Delimiter Characters options. > Optionally, you may also want to enable the Merge Consecutive Delimiters > option. > > On Fri, Jan 26, 201