fenics-tutorial icon indicating copy to clipboard operation
fenics-tutorial copied to clipboard

ft06 Plotting Displacement Problem

Open amandaivl opened this issue 4 years ago • 2 comments

Hi, I'm trying to do the ft06 elasticity demo, but I am getting the following error when I run the program: *** Warning: Matplotlib plotting backend does not support displacement for 3 in 3. Continuing without plotting...

Furthermore, when I open the image file for "displacement" it seems to be empty. The other two files (magnitude and Von Mises) seem to work fine. Any thoughts on how I can fix this?

I am using Debian 10 and python 3.

Thanks!

amandaivl avatar Mar 23 '20 15:03 amandaivl

install vtkplotter. Then, try from vtkplotter.dolfin import plot done

MrOpine avatar May 23 '20 21:05 MrOpine

Hi, I'm trying to do the ft06 elasticity demo, but I am getting the following error when I run the program: *** Warning: Matplotlib plotting backend does not support displacement for 3 in 3. Continuing without plotting...

Furthermore, when I open the image file for "displacement" it seems to be empty. The other two files (magnitude and Von Mises) seem to work fine. Any thoughts on how I can fix this?

I am using Debian 10 and python 3.

Thanks!

Hi, I think your code is

# Plot solution
plot(u, title='Displacement', mode='displacement')
plt.savefig('u.png')
plt.cla

Have you fixed this problem?

OsbertWang avatar May 24 '20 14:05 OsbertWang