Making 2d plots paraview6/10/2023 ![]() Ido.SetScalarComponentFromDouble(i,0,j, 0, proj_img) Ido.SetScalarComponentFromDouble(0,i,j, 0, proj_img) Weight_img = np.zeros((resolution,resolution),dtype=np.float64) Proj_img = np.zeros((resolution,resolution),dtype=np.float64) #All cells are assumed to be of uniform size in data Weight = np.reshape(weight,(dimensions,dimensions,dimensions),order='F') Weight = pdi.PointData #np.ones(numPts, dtype=np.float64) Ivals = np.reshape(ivals,(dimensions,dimensions,dimensions),order='F') #choose an input point data array the projection of which is to be made Ido.SetExtent(0,resolution,0,resolution,0,0) Ido.SetDimensions(resolution,resolution,1) Ido.SetExtent(0,resolution,0,0,0,resolution) Ido.SetDimensions(resolution,1,resolution) Ido.SetExtent(0,0,0,resolution,0,resolution) Ido.SetDimensions(1,resolution,resolution) Resolution = (extent-extent,extent-extent) #pixel for the projection plot Xmin, xmax, ymin, ymax, zmin, zmax = pdi.GetBounds() from _interface import dataset_adapter as dsaįrom _interface import algorithms as algs Can you please have a look at this and also comment on the efficiency on large datasets run on parallel client-server interface? I get the correct expected image in matplotlib figure but not for the vtkImageData on Paraview (very strange behavior at the boundary). For comparing, I was also creating a matplotlib figure on the array which I’m creating for the vtk data. I tried to make a vtkImageData of the filter. Department of Energy’s National Nuclear Security Administration under contract DE-NA-0003525.Here is the code. Sandia National Laboratories is a multi-mission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC., a wholly owned subsidiary of Honeywell International, Inc., for the U.S. On the Properties tab, turn off Use Index for X Array and for X Array Name select DISPL_Z.We want to plot two variables against each other, for all points (or cells) of the can.In Series Paramaters, turn off everything except DISPL (Magnitude).Filters→Data Analysis→Extract Selection.We want to plot all of the can points over time.Plot min, max and average for all points of a block over time On the Properties tab, turn off everything, then turn on all variables VEL (Magnitude).On the Properties tab, display section, click on Root, turning on all of the points or cells.On the Properties tab, unselect the Only Report Selection Statistics checkbox.Then, rubber band select about four points. ![]() Plot multiple points (spaghetti plot version) On the Properties tab, turn off all varialbes, and then turn on variables VEL (Magnitude) and ACCL (Magnitude).Filters→Data Analysis→Plot Selection Over Time.We want to plot numerous points over time.Plot multiple points (statistics plot version) Note below that the ACCL (Magnitude) color has been changed to blue.At the bottom of the Display tab, change Chart Axes to Bottom-Right.Select the line that says ACCL (Magnitude), causing this row to turn gray.On the Properties tab, turn off DISPL (Magnitude) and turn on variables VEL (Magnitude) and ACCL (Magnitude).Follow the steps for Plot Point over time, as described above.Extra Credit – Using Select Cells On icon, and the Plot Cell Over Time, plot EQPS over time. ![]()
0 Comments
Leave a Reply. |