FEniCS Course
FEniCS Course
Lecture 20: Tools for visualization programming
Contributors Carl Lundholm, Magne Nordaas
1 / 22
Visualisation in FEniCS
Three main options for visualisation ? Built-in VTK plotting ? matplotlib ? ParaView
2 / 22
Built-in VTK plotting
Built-in plotting functionality for FEniCS ? Plot meshes, functions, mesh functions ? Not available on all FEniCS installations ? Limited 3D capabilities
from fenics import * parameters["plotting_backend"] = "vtk" mesh = UnitCubeMesh(16 , 16 , 16) plot(mesh) interactive ()
3 / 22
matplotlib
Plotting libarary for Python and Numpy ? Part of a standard Python installation ? Has a MATLAB-like interface ? Produces high-quality 1D and 2D plots
Related projects ? Pandas ? Seaborn
4 / 22
matplotlib example
from dolfin import * from matplotlib import pyplot parameters["plotting_backend"] = "matplotlib" mesh2D = UnitSquareMesh(16 ,16) mesh3D = UnitCubeMesh(16 , 16 , 16) plot(mesh2D) plot(mesh3D) pyplot . show ()
5 / 22
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- matplotlib 2d and 3d plotting in python
- fenics course
- matplottheme documentation
- physics 514 basic python intro part iv exercises
- basic plotting with python and matplotlib
- computing for data science and statistics stat679
- fc simesh matplotlib package user s guide
- python and matplotlib essentials for scientists and
- lab 3 plotting with matplotlib and mayavi
- fc matplotlib4mesh package user s guide
Related searches
- free financial management course online
- personal financial management course online
- financial management course online
- early childhood education course online
- personal finance management course bankruptcy
- personal financial management course navy
- basic airborne course packing list
- financial management course syllabus
- excel training course pdf
- financial management course outline
- writing course middle school
- bankruptcy financial management course free