This has been fixed (pull request 637 
<https://github.com/pyqtgraph/pyqtgraph/pull/637>), but a version with the 
fix implemented hasn't been released yet.

A new release should be coming pretty soon, but there's no specific 
schedule. In the meantime, you may want to try replacing the conda package 
with an installation from git (many things have been fixed/improved since 
0.10.0): see installation methods. 
<https://github.com/pyqtgraph/pyqtgraph/blob/db483f8ec22a0d53bd0e71fac69b0045a96c6637/README.md#installation-methods>

On Tuesday, December 3, 2019 at 7:50:22 AM UTC-8, Jerzy Karczmarczuk wrote:
>
> Just loaded and tested pyqtgraph included examples. Windows 10, recent 
> Anaconda.
>
> The isosurface plotting example doesn't work, Python reports:
>
> *TypeError: only integer scalar arrays can be converted to a scalar index*
>
> The error is found in :   *... site-packages\pyqtgraph\functions.py"*, *line 
> 2069, in <listcomp>*
>
>
> *    faceTableI[faceTableInds[:,0]] = np.array([triTable[j] for j in 
> faceTableInds]) *
>
> So, some incompatibility with Numpy...
> I try to find the cause, but perhaps somebody knows already the "true" 
> solution? For the moment I see only the surface of the problem, 
> and I hate to make blind corrections... Here we go.
>
> FaceTableInds is:  [[  1],  [  2],  [  4], [  8] ...], 
> so the variable j is not integer, but an int *wrapped*, and cannot index 
> triTable, since its shape is (1,)
>
> I replaced *triTable[j] by **triTable[j[0]]*
> And I got the yellow, semi-transparent 3D plot,, but, as I said, this is a 
> blind solution...
> Thank you.
>
> Jerzy Karczmarczuk
> /Caen, France/
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/8d47e93e-b91a-4c79-8080-291681437014%40googlegroups.com.

Reply via email to