Pyqtgraph’s Artists#
Classes:
|
Artist to plot 3D lines. |
|
Base class for artists used in pyqtgraph scene. |
|
Artist to plot 3D lines. |
|
Artist to plot 3D vectors. |
- class symmeplot.pyqtgraph.artists.Line3D(x: Sequence[float], y: Sequence[float], z: Sequence[float], **kwargs)#
Bases:
PgArtistBase
Artist to plot 3D lines.
Attributes:
Methods:
plot
(view)Add the artist to the view.
update_data
(x, y, z)Update the data of the artist.
- property gl_items: tuple[<module 'pyqtgraph.opengl.GLGraphicsItem' from '/home/runner/.cache/pypoetry/virtualenvs/symmeplot-E3Ysmw9j-py3.10/lib/python3.10/site-packages/pyqtgraph/opengl/GLGraphicsItem.py'>, ...]#
The pyqtgraph item.
- plot(view: GLViewWidget)#
Add the artist to the view.
- update_data(x: Sequence[float], y: Sequence[float], z: Sequence[float])#
Update the data of the artist.
- property visible: bool#
If the artist is visible.
- class symmeplot.pyqtgraph.artists.PgArtistBase(*gl_items: gl.GLGraphicsItem)#
Bases:
ArtistBase
Base class for artists used in pyqtgraph scene.
Attributes:
Methods:
plot
(view)Add the artist to the view.
update_data
(*args)Update the data of the artist.
- property gl_items: tuple[<module 'pyqtgraph.opengl.GLGraphicsItem' from '/home/runner/.cache/pypoetry/virtualenvs/symmeplot-E3Ysmw9j-py3.10/lib/python3.10/site-packages/pyqtgraph/opengl/GLGraphicsItem.py'>, ...]#
The pyqtgraph item.
- plot(view: GLViewWidget)#
Add the artist to the view.
- abstract update_data(*args)#
Update the data of the artist.
- property visible: bool#
If the artist is visible.
- class symmeplot.pyqtgraph.artists.Point3D(x: float, y: float, z: float, **kwargs)#
Bases:
PgArtistBase
Artist to plot 3D lines.
Attributes:
Methods:
plot
(view)Add the artist to the view.
update_data
(x, y, z)Update the data of the artist.
- property gl_items: tuple[<module 'pyqtgraph.opengl.GLGraphicsItem' from '/home/runner/.cache/pypoetry/virtualenvs/symmeplot-E3Ysmw9j-py3.10/lib/python3.10/site-packages/pyqtgraph/opengl/GLGraphicsItem.py'>, ...]#
The pyqtgraph item.
- plot(view: GLViewWidget)#
Add the artist to the view.
- update_data(x: float, y: float, z: float)#
Update the data of the artist.
- property visible: bool#
If the artist is visible.
- class symmeplot.pyqtgraph.artists.Vector3D(origin: Sequence[float], vector: Sequence[float], as_mesh: bool = False, **kwargs)#
Bases:
PgArtistBase
Artist to plot 3D vectors.
- Parameters:
origin (
Sequence[float]
) – The origin of the vector.vector (
Sequence[float]
) – The vector to plot.as_mesh (
bool
, optional) – If True, the vector is plotted as a mesh, by default False.vector_radius (
float
, optional) – The radius of the vector if plotted as mesh, by default defined as classattribute.head_width (
float
, optional) – The width of the head of the vector if plotted as mesh, by default defined as classattribute.head_length (
float
, optional) – The length of the head of the vector if plotted as mesh, by default defined as classattribute.mesh_resolution (
int
, optional) – The number of points in the circle if plotted as mesh, by default defined as classattribute.
Attributes:
Methods:
plot
(view)Add the artist to the view.
update_data
(origin, vector)Update the data of the artist.
- property gl_items: tuple[<module 'pyqtgraph.opengl.GLGraphicsItem' from '/home/runner/.cache/pypoetry/virtualenvs/symmeplot-E3Ysmw9j-py3.10/lib/python3.10/site-packages/pyqtgraph/opengl/GLGraphicsItem.py'>, ...]#
The pyqtgraph item.
- plot(view: GLViewWidget)#
Add the artist to the view.
- update_data(origin: Sequence[float], vector: Sequence[float])#
Update the data of the artist.
- property visible: bool#
If the artist is visible.