[vtkusers] How can I plot a Hedgehog with programmatically-built data? (Python)

J. babybishops at gmail.com
Fri Jul 6 04:09:55 EDT 2018

I'd like to draw a Hedgehog plot in Python. I had a look at this example:


But unfortunately the data for the plot there is just read from a file,
"carotid.vtk" (a file which, by the way, I can't find anywhere on the
Internet - maybe a download a link could be added to the examples page?).
Thus it's quite opaque exactly how this data needs to be presented. I've
been trying to guess my way to success by looking at some C code I found,
but I'm not getting any joy.

Say I have a 2-dimensional python array of python 3-tuples representing the
values of a vector field at each point of a regular 3d grid. What steps do
I take to plot that as a hedgehog?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180706/d499e1d4/attachment.html>

More information about the vtkusers mailing list