Contour plots (panels.plot_shell)#
- panels.plot_shell.plot_shell(shell, c, invert_y=False, vec='w', deform_u=False, deform_u_sf=100.0, filename='', ax=None, figsize=(3.5, 2.0), save=True, title='', colorbar=False, cbar_nticks=2, cbar_format=None, cbar_title='', cbar_fontsize=10, colormap='jet', aspect='equal', clean=True, dpi=400, texts=[], xs=None, ys=None, gridx=300, gridy=300, num_levels=400, vecmin=None, vecmax=None, plot_offset_x=0.0, plot_offset_y=0.0, NLgeom=True)#
Contour plot for a Ritz constants vector.
- Parameters:
- carray_like
The Ritz constants that will be used to compute the field contour.
- vecstr, optional
Can be one of the components:
Displacement:
'u','v','w','phix','phiy'Strain:
'exx','eyy','gxy','kxx','kyy','kxy','gyz','gxz'Stress:
'Nxx','Nyy','Nxy','Mxx','Myy','Mxy','Qy','Qx'
- deform_ubool, optional
If
Truethe contour plot will look deformed.- deform_u_sffloat, optional
The scaling factor used to deform the contour.
- invert_ybool, optional
Inverts the \(y\) axis of the plot.
- savebool, optional
Flag telling whether the contour should be saved to an image file.
- dpiint, optional
Resolution of the saved file in dots per inch.
- filenamestr, optional
The file name for the generated image file. If no value is given, the \(name\) parameter of the
Shellobject will be used.- axAxesSubplot, optional
When
axis given, the contour plot will be created inside it.- figsizetuple, optional
The figure size given by
(width, height).- titlestr, optional
If any string is given it is added as title to the contour plot.
- colorbarbool, optional
If a colorbar should be added to the contour plot.
- cbar_nticksint, optional
Number of ticks added to the colorbar.
- cbar_format[ None | format string | Formatter object ], optional
See the
matplotlib.pyplot.colorbardocumentation.- cbar_titlestr, optional
Colorbar title. If
cbar_title == ''no title is added.- cbar_fontsizeint, optional
Fontsize of the colorbar labels.
- colormapstring, optional
Name of a matplotlib available colormap.
- aspectstr, optional
String that will be passed to the
AxesSubplot.set_aspect()method.- cleanbool, optional
Clean axes ticks, grids, spines etc.
- xsarray_like, optional
The \(x\) positions where to calculate the displacement field. Default is
Noneand the method_default_fieldis used.- ysarray_like, optional
The
ypositions where to calculate the displacement field. Default isNoneand the method_default_fieldis used.- gridxint, optional
Number of points along the \(x\) axis where to calculate the displacement field.
- gridyint, optional
Number of points along the \(y\) where to calculate the displacement field.
- num_levelsint, optional
Number of contour levels (higher values make the contour smoother).
- vecminfloat, optional
Minimum value for the contour scale (useful to compare with other results). If not specified it will be taken from the calculated field.
- vecmaxfloat, optional
Maximum value for the contour scale.
- Returns:
- axmatplotlib.axes.Axes
The Matplotlib object that can be used to modify the current plot if needed.