def plot(self, component='displacement', **kwargs):
"""Plots any component fom Scene
The following components are recognizes
- 'cartesian.dE'
- 'cartesian.dN'
- 'cartesian.dU'
- 'displacement'
- 'phi'
- 'theta'
:param **kwargs: Keyword args forwarded to `matplotlib.plt.imshow()`
:type **kwargs: {dict}
:param component: Component to plot
['cartesian.dE', 'cartesian.dN', 'cartesian.dU',
'displacement', 'phi', 'theta']
:type component: {string}, optional
:param axes: Axes instance to plot in, defaults to None
:type axes: :py:class:`matplotlib.Axes`, optional
:param figure: Figure instance to plot in, defaults to None
:type figure: :py:class:`matplotlib.Figure`, optional
:param **kwargs: kwargs are passed into `plt.imshow`
:type **kwargs: dict
:returns: Imshow instance
:rtype: :py:class:`matplotlib.image.AxesImage`
:raises: AttributeError
"""
self._initImagePlot(**kwargs)
self.component = component
self.title = self.components_available[component]
if self._show_plt:
plt.show()
评论列表
文章目录