[vistrails-dev] [VisTrails] examples/matplotlib/pcolor.vt fails on matplotlib 1.4.3 (#1132)

Thomas A Caswell notifications at github.com
Wed Oct 7 11:10:32 EDT 2015


This works correctly.

```python

import matplotlib.pyplot as plt
import numpy as np

def func3(x, ):
    return (1 - x/2 + x**5 + y**3) * np.exp(-x**2 - y**2)


# make these smaller to increase the resolution
dx, dy = 0.05, 0.05

x = np.arange(-3.0, 3.0001, dx)
y = np.arange(-3.0, 3.0001, dy)
X, Y = np.meshgrid(x, y)

Z = func3(X, Y)

plt.pcolor(X, Y, Z)
```

I suspect that you can fix this on the vt side by calling `np.asarray` or `np.vstack` on the data before passing it off to `pcolor`. I have a rough recollection that vt passes arrays between nodes as lists?

---
Reply to this email directly or view it on GitHub:
https://github.com/VisTrails/VisTrails/issues/1132#issuecomment-146224927
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vistrails.org/pipermail/vistrails-dev/attachments/20151007/e09076c3/attachment-0001.html>


More information about the vistrails-dev mailing list