By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,273 Members | 1,037 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,273 IT Pros & Developers. It's quick & easy.

vtkStructuredGrid usage question in MayaVi

P: n/a
Hello All:

I hope this is a simple question, but I can't seem to figure it out. I
am using MayaVi to visualize some data. I have finally manged to get
the data to plot, but the axes are weird, and the scaling of the image
is way off. I have been fooling around with the command below.

grid = pyvtk.StructuredPoints((nex1,nex1,1), (0,s1high,0), (2, 2,
0.2))

This seems to be the key to having the data plotted nicely (scaled
properly, axes numbered correctly, etc.). However, I cannot figure out
what each of the tuples are for. Does anyone know?

This would be a huge help for me.

Thanks,

Tyler

Apr 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Just found it!!!! Still not sure what the third entries are, but it's
a start!

# create a vtk data file
sp = pyvtk.StructuredPoints ((nx, ny, 1), (xmin, ymin, 0), (dx,
dy, 1))
pd = pyvtk.PointData(pyvtk.Scalars(z, name='Scalars',
lookup_table="default"))

Tyler

Apr 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.