nanomesh.plottingο
Module containing mesh plots.
Classes:
|
Select a polygon region of an axes with snapping to points. |
Functions:
|
Plot mesh points. |
- class nanomesh.plotting.PolygonSelectorWithSnapping(*args, snap_to: Optional[ndarray] = None, **kwargs)[source]ο
Bases:
PolygonSelector
Select a polygon region of an axes with snapping to points.
For usage details see
matplotlib.widgets.PolygonSelector
- Parameters
snap_to ((n,2) numpy.ndarray) β List of points to snap to .
*args (list) β Arguments passed to
matplotlib.widgets.PolygonSelector
.**kwargs β Keyword arguments passed to
matplotlib.widgets.PolygonSelector
. The parent axes for the widget.
- nanomesh.plotting.pointsplot(mesh: MeshContainer, key: str = None, ax: plt.Axes = None, **kwargs) plt.Axes [source]ο
Plot mesh points.
- Parameters
mesh (MeshContainer) β Input mesh
key (str, optional) β Key of the point data to use for coloring
ax (matplotlib.axes.Axes, optional) β Axes to use for plotting.
**kwargs β These parameters are passed to
matplotlib.pyplot.scatter()
- Return type