vedo icon indicating copy to clipboard operation
vedo copied to clipboard

Warning when plotting Dolfin subspace

Open RuruX opened this issue 3 years ago • 2 comments

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 u_mid, where u_mid,theta=split(w), it works fine. The strange thing is, sometimes u_mid 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

RuruX avatar Apr 02 '21 17:04 RuruX

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!

marcomusy avatar Apr 02 '21 22:04 marcomusy

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 .

RuruX avatar Apr 02 '21 23:04 RuruX