marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
1.98k stars 257 forks source link

Warning when plotting Dolfin subspace #360

Open RuruX opened 3 years ago

RuruX commented 3 years ago

Hi Marco,

I got a warning when trying to plot the subspace of a mixed function and it only showed this empty window: Screenshot from 2021-04-02 09-13-40

The warning information is:

Warning: no objects to show, check mode in plot(mode="...")

However, when I tried to plot w.sub(0) instead of _umid, where _umid,theta=split(w), it works fine. The strange thing is, sometimes _umid can work too but I cannot tell when it should work. Here is the right plot I got from plot(w.sub(0)):

Screenshot from 2021-04-02 09-16-07

Please have a look at the minimal test code and the mesh file attached below, and let me know if you can reproduce the same results. vedo_test.zip

marcomusy commented 3 years ago

Thanks Ru for the detailed description of the issue, if I understand there should be no difference between w.sub(0) and u_mid (correct?), so the vedo parsing must be missing the latter.. maybe is being wrapped into some other object.. i need to investigate it!

RuruX commented 3 years ago

Hi Marco,

Thanks for your reply! Yeah they should be the same mathematically. Please let me know if you have any findings.

Best, Ru

On Fri, Apr 2, 2021 at 3:49 PM Marco Musy @.***> wrote:

Thanks Ru for the detailed description of the issue, if I understand there should be no difference between w.sub(0) and u_mid (correct?), so the vedo parsing must be missing the latter.. maybe is being wrapped into some other object.. i need to investigate it!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/marcomusy/vedo/issues/360#issuecomment-812745052, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLCLSGGAK4QNWX6SXL6EB3TGZCX5ANCNFSM42JGCLKQ .