Note
Click here to download the full example code
Plot Domain Results with MatplotlibΒΆ
Make a 2d contour plot about the results of a domain. This example requires matplotlib to be installed. The structure is a simply supported plate.
from axisvm.com.client import start_AxisVM
from axisvm import examples
import matplotlib.pyplot as plt
axvm = start_AxisVM(visible=False, daemon=True)
axvm.model = examples.download_plate_ss()
axm = axvm.model
axm.Calculation.LinearAnalysis()
fig, ax = plt.subplots(figsize=(20, 4))
mpl_kw = dict(nlevels=15, cmap='rainbow', axis='on', offset=0., cbpad=0.5,
cbsize=0.3, cbpos='right', fig=fig, ax=ax)
axm.Domains[1].plot_dof_solution(component='uz', mpl_kw=mpl_kw, case=1)
axvm.Quit()
Total running time of the script: ( 0 minutes 18.618 seconds)